Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001101/0.001101, allocations: 110.3 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.001243/0.001244, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.423/1.423, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1861/0.1861, allocations: 38.04 MB / 329.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 60.95 kB / 398.9 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09697, allocations: 58.07 MB / 457 MB, free: 8 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007624/0.1046, allocations: 5.37 MB / 462.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006335/0.111, allocations: 4.164 MB / 466.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000588/0.1116, allocations: 15.94 kB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01173/0.1234, allocations: 4.836 MB / 471.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.1244, allocations: 350.3 kB / 471.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007795/0.1252, allocations: 243.5 kB / 471.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003154/0.1284, allocations: 1.571 MB / 473.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009709/0.1294, allocations: 384.2 kB / 473.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006595/0.1301, allocations: 374.6 kB / 474.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008547/0.1309, allocations: 442.3 kB / 474.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.1311, allocations: 48 kB / 474.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003822/0.1315, allocations: 119.8 kB / 474.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003306/0.1319, allocations: 279.2 kB / 475.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.1324, allocations: 318.4 kB / 475.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000998/0.1334, allocations: 0.7397 MB / 476.2 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1334, allocations: 0 / 476.2 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1334, allocations: 0 / 476.2 MB, free: 4.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.724e-05/0.1335, allocations: 0 / 476.2 MB, free: 4.73 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002117/0.1356, allocations: 0.9133 MB / 477.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1357, allocations: 11.89 kB / 477.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.1358, allocations: 94.7 kB / 477.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005366/0.1364, allocations: 92.05 kB / 477.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.1375, allocations: 0.5292 MB / 477.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.1375, allocations: 36.98 kB / 477.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.1377, allocations: 51.91 kB / 477.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1387, allocations: 0.6491 MB / 478.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.1387, allocations: 0 / 478.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.1388, allocations: 20 kB / 478.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001415/0.139, allocations: 52.95 kB / 478.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008124/0.1398, allocations: 495.6 kB / 479.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.1434, allocations: 2.531 MB / 481.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.1439, allocations: 315.5 kB / 481.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.1442, allocations: 187 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1442, allocations: 4.5 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1442, allocations: 46.53 kB / 482.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.014e-06/0.1443, allocations: 0 / 482.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.003074/0.1473, allocations: 1.635 MB / 483.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.1474, allocations: 114.9 kB / 483.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007546/0.1482, allocations: 421.8 kB / 484.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.1483, allocations: 29.7 kB / 484.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/0.1486, allocations: 307.6 kB / 484.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1488, allocations: 126.2 kB / 484.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.149, allocations: 82.25 kB / 484.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1492, allocations: 362.7 kB / 485.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.1496, allocations: 169 kB / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.15, allocations: 297.8 kB / 485.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.1507, allocations: 495.6 kB / 486.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1507, allocations: 4 kB / 486.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00134/0.152, allocations: 0.7992 MB / 487 MB, free: 9.273 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.152, allocations: 8 kB / 487 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1521, allocations: 4 kB / 487 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006584/0.1527, allocations: 205.8 kB / 487.2 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003348/0.1531, allocations: 83.83 kB / 487.3 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004842/0.1579, allocations: 4.229 MB / 491.5 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.1582, allocations: 19.98 kB / 491.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.1583, allocations: 19.94 kB / 491.5 MB, free: 4.426 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.1586, allocations: 233.9 kB / 491.8 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.1587, allocations: 47.44 kB / 491.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.1597, allocations: 0.6379 MB / 492.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1597, allocations: 8.031 kB / 492.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1597, allocations: 0 / 492.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1597, allocations: 0 / 492.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.1615, allocations: 1.195 MB / 493.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1615, allocations: 0 / 493.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/0.1619, allocations: 71.89 kB / 493.7 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/0.1621, allocations: 53.67 kB / 493.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.1621, allocations: 16.05 kB / 493.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.1643, allocations: 2.839 MB / 496.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1643, allocations: 0 / 496.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.1654, allocations: 0.953 MB / 497.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.1656, allocations: 144.5 kB / 497.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.99e-05/0.1657, allocations: 15.98 kB / 497.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.166, allocations: 12 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/0.166, allocations: 31.89 kB / 497.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.1661, allocations: 8 kB / 497.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003161/0.1664, allocations: 295.1 kB / 498.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1664, allocations: 0 / 498.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006431/0.1671, allocations: 132 kB / 498.2 MB, free: 13.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001513/0.1686, allocations: 1.502 MB / 499.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.1701, allocations: 0.7938 MB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1701, allocations: 0 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.1707, allocations: 418 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007793/0.1715, allocations: 131.6 kB / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007842/0.1794, allocations: 5.617 MB / 0.4948 GB, free: 4.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.18, allocations: 0.9405 MB / 0.4957 GB, free: 3.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003466/0.1803, allocations: 104.4 kB / 0.4958 GB, free: 3.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.1807, allocations: 195.4 kB / 0.496 GB, free: 3.121 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1807, allocations: 0 / 0.496 GB, free: 3.121 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.2187, allocations: 11.98 MB / 0.5077 GB, free: 7.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.52, allocations: 0 / 0.5077 GB, free: 7.316 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_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_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches