Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 114.2 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.91 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3258, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005571/0.3315, allocations: 4.511 MB / 0.508 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.3336, allocations: 1.402 MB / 0.5094 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.3338, allocations: 12.59 kB / 0.5094 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008108/0.3347, allocations: 291.6 kB / 0.5097 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005915/0.3353, allocations: 288.7 kB / 0.51 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007257/0.336, allocations: 255.8 kB / 0.5102 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007987/0.3368, allocations: 0.6647 MB / 0.5109 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004446/0.3373, allocations: 249.7 kB / 0.5111 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005311/0.3378, allocations: 295.3 kB / 0.5114 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007539/0.3386, allocations: 407.8 kB / 0.5118 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.3387, allocations: 45.25 kB / 0.5118 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005768/0.3393, allocations: 217.8 kB / 0.512 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003654/0.3397, allocations: 252.7 kB / 0.5123 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003994/0.3401, allocations: 285 kB / 0.5125 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.3412, allocations: 0.763 MB / 0.5133 GB, free: 1.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3412, allocations: 4.703 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3412, allocations: 0 / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3412, allocations: 1.281 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001557/0.3428, allocations: 0.8906 MB / 0.5142 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3428, allocations: 9.5 kB / 0.5142 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.343, allocations: 96.28 kB / 0.5143 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.3435, allocations: 105 kB / 0.5144 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006108/0.3441, allocations: 442.9 kB / 0.5148 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.3442, allocations: 24.84 kB / 0.5148 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.176e-05/0.3443, allocations: 47.92 kB / 0.5148 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3456, allocations: 0.8582 MB / 0.5157 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.3456, allocations: 5.875 kB / 0.5157 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.3457, allocations: 16.66 kB / 0.5157 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/0.3459, allocations: 59.66 kB / 0.5158 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.3473, allocations: 0.7984 MB / 0.5165 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.3511, allocations: 2.727 MB / 0.5192 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000917/0.352, allocations: 0.5764 MB / 0.5198 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005835/0.3526, allocations: 454.4 kB / 0.5202 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.3527, allocations: 3.938 kB / 0.5202 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.3527, allocations: 40.91 kB / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.664e-06/0.3527, allocations: 0 / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003062/0.3558, allocations: 1.898 MB / 0.5221 GB, free: 12.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.3559, allocations: 143.7 kB / 0.5222 GB, free: 12.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.3563, allocations: 294.5 kB / 0.5225 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.3563, allocations: 31.73 kB / 0.5225 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.3565, allocations: 263.9 kB / 0.5228 GB, free: 12.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.3567, allocations: 196.5 kB / 0.523 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.3569, allocations: 101.9 kB / 0.5231 GB, free: 12.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3571, allocations: 350.9 kB / 0.5234 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.3576, allocations: 344.2 kB / 0.5237 GB, free: 11.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005905/0.3582, allocations: 488.5 kB / 0.5242 GB, free: 11.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.3594, allocations: 0.9854 MB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3594, allocations: 1.281 kB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001526/0.361, allocations: 0.9881 MB / 0.5261 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.345e-05/0.3611, allocations: 76.06 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3611, allocations: 5.281 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001928/0.3613, allocations: 37.92 kB / 0.5263 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.3617, allocations: 85.84 kB / 0.5263 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.3631, allocations: 1.553 MB / 0.5279 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.3635, allocations: 29.95 kB / 0.5279 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.3636, allocations: 43.52 kB / 0.5279 GB, free: 8.883 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004342/0.364, allocations: 298.5 kB / 0.5282 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3642, allocations: 49.58 kB / 0.5283 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.3658, allocations: 1.076 MB / 0.5293 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/0.3658, allocations: 11.27 kB / 0.5293 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3659, allocations: 2.109 kB / 0.5293 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3659, allocations: 6.703 kB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.369, allocations: 1.797 MB / 0.5311 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.369, allocations: 0.8438 kB / 0.5311 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.3693, allocations: 55.08 kB / 0.5311 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001598/0.3695, allocations: 37.52 kB / 0.5312 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/0.3696, allocations: 17.39 kB / 0.5312 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/0.3711, allocations: 1.549 MB / 0.5327 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3711, allocations: 1.312 kB / 0.5327 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.373, allocations: 1.172 MB / 0.5338 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.3733, allocations: 178.8 kB / 0.534 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.483e-05/0.3734, allocations: 16.03 kB / 0.534 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.3737, allocations: 27.09 kB / 0.5341 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3738, allocations: 49.48 kB / 0.5341 GB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.469e-05/0.3739, allocations: 19.95 kB / 0.5341 GB, free: 5.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.3741, allocations: 202.6 kB / 0.5343 GB, free: 5.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.854e-06/0.3741, allocations: 0 / 0.5343 GB, free: 5.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006722/0.3748, allocations: 148.4 kB / 0.5345 GB, free: 5.113 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/0.3769, allocations: 1.773 MB / 0.5362 GB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.3789, allocations: 1.371 MB / 0.5375 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3789, allocations: 1.125 kB / 0.5375 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.38, allocations: 0.9374 MB / 0.5384 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.3806, allocations: 74.7 kB / 0.5385 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007802/0.3884, allocations: 5.88 MB / 0.5443 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005847/0.3891, allocations: 0.9015 MB / 0.5451 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003229/0.3894, allocations: 99.19 kB / 0.5452 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/0.3897, allocations: 155.4 kB / 0.5454 GB, free: 12.61 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3897, allocations: 0 / 0.5454 GB, free: 12.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03982/0.4295, allocations: 10.28 MB / 0.5554 GB, free: 2.473 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.89, allocations: 0 / 0.5554 GB, free: 2.473 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches