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.0014/0.0014, allocations: 113 kB / 17.07 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.001546/0.001546, allocations: 191 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2562/0.2562, allocations: 38.05 MB / 329.9 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.88 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3603, allocations: 58.07 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006071/0.3664, allocations: 4.502 MB / 0.508 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.369, allocations: 1.406 MB / 0.5094 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002826/0.3693, allocations: 12.03 kB / 0.5094 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008644/0.3702, allocations: 292.2 kB / 0.5097 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006503/0.3708, allocations: 283.6 kB / 0.51 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007988/0.3716, allocations: 253.8 kB / 0.5102 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008253/0.3725, allocations: 0.6683 MB / 0.5109 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004619/0.3729, allocations: 243.6 kB / 0.5111 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.3735, allocations: 301.9 kB / 0.5114 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.3741, allocations: 415.6 kB / 0.5118 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.804e-05/0.3742, allocations: 45.91 kB / 0.5118 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005036/0.3747, allocations: 217.5 kB / 0.512 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.3751, allocations: 252.3 kB / 0.5123 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.3754, allocations: 286 kB / 0.5125 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.3765, allocations: 0.7628 MB / 0.5133 GB, free: 1.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3765, allocations: 0 / 0.5133 GB, free: 1.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3765, allocations: 4 kB / 0.5133 GB, free: 1.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.3766, allocations: 1.031 kB / 0.5133 GB, free: 1.613 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.001676/0.3782, allocations: 0.89 MB / 0.5142 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3783, allocations: 17.8 kB / 0.5142 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001309/0.3784, allocations: 93.39 kB / 0.5143 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006062/0.3791, allocations: 105.3 kB / 0.5144 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006663/0.3797, allocations: 441.1 kB / 0.5148 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.3798, allocations: 30.53 kB / 0.5148 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-05/0.3799, allocations: 47.42 kB / 0.5149 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.3813, allocations: 0.8574 MB / 0.5157 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.3813, allocations: 4.969 kB / 0.5157 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.3814, allocations: 23.22 kB / 0.5157 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.3816, allocations: 57.88 kB / 0.5158 GB, free: 112 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.3832, allocations: 0.7953 MB / 0.5165 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004091/0.3873, allocations: 2.726 MB / 0.5192 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009401/0.3883, allocations: 0.5768 MB / 0.5198 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006197/0.3889, allocations: 451.9 kB / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.3889, allocations: 6.031 kB / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.389, allocations: 36.84 kB / 0.5202 GB, free: 13.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/0.389, allocations: 0 / 0.5202 GB, free: 13.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003734/0.3928, allocations: 1.901 MB / 0.5221 GB, free: 12.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.3929, allocations: 139.2 kB / 0.5222 GB, free: 12.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.3935, allocations: 298.8 kB / 0.5225 GB, free: 12.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.78e-05/0.3935, allocations: 32.27 kB / 0.5226 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.3937, allocations: 264.3 kB / 0.5228 GB, free: 12.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.3939, allocations: 196.3 kB / 0.523 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.3941, allocations: 98.05 kB / 0.5231 GB, free: 11.97 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3943, allocations: 354.3 kB / 0.5234 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.3949, allocations: 340.8 kB / 0.5237 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006348/0.3955, allocations: 488.7 kB / 0.5242 GB, free: 11.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3969, allocations: 0.9851 MB / 0.5252 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3969, allocations: 2.078 kB / 0.5252 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001896/0.3988, allocations: 0.9827 MB / 0.5261 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.3989, allocations: 81.03 kB / 0.5262 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3989, allocations: 4.656 kB / 0.5262 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002592/0.3992, allocations: 38.23 kB / 0.5263 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.3997, allocations: 85.61 kB / 0.5263 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.4012, allocations: 1.548 MB / 0.5278 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.4016, allocations: 35.45 kB / 0.5279 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-05/0.4017, allocations: 38.27 kB / 0.5279 GB, free: 8.84 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.0004726/0.4022, allocations: 307.7 kB / 0.5282 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.4023, allocations: 47.78 kB / 0.5283 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.4043, allocations: 1.078 MB / 0.5293 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-05/0.4043, allocations: 11.72 kB / 0.5293 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4043, allocations: 1.672 kB / 0.5293 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.4044, allocations: 1.547 kB / 0.5293 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/0.4077, allocations: 1.798 MB / 0.5311 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4077, allocations: 5.062 kB / 0.5311 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.408, allocations: 54.17 kB / 0.5311 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.4081, allocations: 39.17 kB / 0.5312 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.4082, allocations: 15.92 kB / 0.5312 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.4099, allocations: 1.554 MB / 0.5327 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.4099, allocations: 5.438 kB / 0.5327 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.4119, allocations: 1.172 MB / 0.5339 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/0.4122, allocations: 174.2 kB / 0.534 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.4123, allocations: 13.02 kB / 0.534 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.4127, allocations: 31.38 kB / 0.5341 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4128, allocations: 45.08 kB / 0.5341 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.637e-05/0.4129, allocations: 19.72 kB / 0.5341 GB, free: 5.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003037/0.4132, allocations: 205.5 kB / 0.5343 GB, free: 5.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.4132, allocations: 0 / 0.5343 GB, free: 5.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007473/0.414, allocations: 144.5 kB / 0.5345 GB, free: 5.07 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.002471/0.4165, allocations: 1.767 MB / 0.5362 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002143/0.4186, allocations: 1.372 MB / 0.5375 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4186, allocations: 0 / 0.5375 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.4201, allocations: 0.9389 MB / 0.5384 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007869/0.4209, allocations: 82.14 kB / 0.5385 GB, free: 2.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.4316, allocations: 5.889 MB / 0.5443 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/0.4324, allocations: 0.9054 MB / 0.5452 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003334/0.4327, allocations: 99.19 kB / 0.5453 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.433, allocations: 151.4 kB / 0.5454 GB, free: 12.62 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.433, allocations: 0 / 0.5454 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03701/0.47, allocations: 10.28 MB / 0.5554 GB, free: 2.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.882/10.35, allocations: 2.578 kB / 0.5554 GB, free: 2.484 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