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.00159/0.00159, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001764/0.001764, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.416/1.416, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.05 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001718, allocations: 63.55 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1063, allocations: 58.05 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006587/0.1129, allocations: 4.517 MB / 461.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.1159, allocations: 1.406 MB / 462.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003799/0.1163, allocations: 15.88 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1173, allocations: 290.7 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007589/0.1181, allocations: 282.6 kB / 463.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007512/0.1189, allocations: 259.4 kB / 463.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000843/0.1197, allocations: 0.6586 MB / 464.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004312/0.1202, allocations: 252.3 kB / 464.6 MB, free: 280 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004711/0.1207, allocations: 287 kB / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00064/0.1213, allocations: 414.7 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.1215, allocations: 44 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.122, allocations: 231.6 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002584/0.1223, allocations: 247.4 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004114/0.1227, allocations: 298.5 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009256/0.1236, allocations: 0.7321 MB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1236, allocations: 0 / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1237, allocations: 0 / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.156e-05/0.1237, allocations: 0 / 466.8 MB, free: 14.05 MB / 350.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.001736/0.1254, allocations: 0.8806 MB / 467.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.1255, allocations: 15.89 kB / 467.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.1256, allocations: 94.69 kB / 467.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006849/0.1263, allocations: 96.22 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006873/0.127, allocations: 411.9 kB / 468.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.1271, allocations: 33.36 kB / 468.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.1272, allocations: 43.94 kB / 468.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.1285, allocations: 0.863 MB / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.1285, allocations: 0 / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.1286, allocations: 23.92 kB / 469.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.1288, allocations: 60.95 kB / 469.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.13, allocations: 0.7924 MB / 470.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003658/0.1337, allocations: 2.745 MB / 472.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/0.1346, allocations: 0.5759 MB / 473.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.1351, allocations: 454.7 kB / 473.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.1352, allocations: 4 kB / 473.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1352, allocations: 34.56 kB / 473.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.215e-06/0.1352, allocations: 4 kB / 473.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002854/0.1381, allocations: 1.883 MB / 475.8 MB, free: 4.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.1382, allocations: 134.8 kB / 476 MB, free: 4.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1385, allocations: 300.4 kB / 476.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.1385, allocations: 37.69 kB / 476.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1387, allocations: 252.3 kB / 476.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.1388, allocations: 189.2 kB / 476.7 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.139, allocations: 94.11 kB / 476.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1391, allocations: 354.9 kB / 477.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.1396, allocations: 344.9 kB / 477.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005384/0.1401, allocations: 493.7 kB / 478 MB, free: 2.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.1412, allocations: 0.9798 MB / 479 MB, free: 1.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1412, allocations: 0 / 479 MB, free: 1.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00139/0.1426, allocations: 0.9843 MB / 479.9 MB, free: 380 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.806e-05/0.1427, allocations: 79.62 kB / 480 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.1428, allocations: 8 kB / 480 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.1429, allocations: 41.39 kB / 480.1 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.1433, allocations: 83.89 kB / 480.1 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.1446, allocations: 1.547 MB / 481.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.145, allocations: 39.95 kB / 481.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.285e-05/0.145, allocations: 31.92 kB / 481.8 MB, free: 14.4 MB / 366.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.0003515/0.1454, allocations: 291.3 kB / 482 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1455, allocations: 47.52 kB / 482.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.147, allocations: 1.076 MB / 483.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.147, allocations: 12 kB / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.147, allocations: 0 / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.147, allocations: 3.984 kB / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.1494, allocations: 1.796 MB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1495, allocations: 8.062 kB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.1497, allocations: 51.95 kB / 485 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.1498, allocations: 40.72 kB / 485.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.1499, allocations: 15.98 kB / 485.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.151, allocations: 1.551 MB / 486.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.151, allocations: 0 / 486.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.1525, allocations: 1.183 MB / 487.8 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.1527, allocations: 176.6 kB / 488 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.159e-05/0.1528, allocations: 12 kB / 488 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002653/0.1531, allocations: 31.94 kB / 488 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.1532, allocations: 43.89 kB / 488.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.647e-05/0.1532, allocations: 23.98 kB / 488.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.1534, allocations: 203.1 kB / 488.3 MB, free: 7.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1534, allocations: 0 / 488.3 MB, free: 7.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005606/0.154, allocations: 144 kB / 488.5 MB, free: 7.406 MB / 366.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.00197/0.156, allocations: 1.761 MB / 490.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.1579, allocations: 1.499 MB / 491.7 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.158, allocations: 0 / 491.7 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009783/0.1589, allocations: 0.9241 MB / 492.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005904/0.1596, allocations: 74.25 kB / 492.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007666/0.1672, allocations: 5.862 MB / 498.6 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005116/0.1678, allocations: 0.8976 MB / 499.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003016/0.1681, allocations: 107.2 kB / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.1683, allocations: 159.3 kB / 499.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1683, allocations: 0 / 499.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.2012, allocations: 10.06 MB / 0.4978 GB, free: 1.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.253/9.454, allocations: 4.938 kB / 0.4978 GB, free: 1.852 MB / 382.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