Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Load,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Load",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.001945/0.001945, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.002297/0.002297, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.394/1.394, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1778/0.1778, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 62.09 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1187, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.008727/0.1275, allocations: 4.478 MB / 461.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.13, allocations: 1.531 MB / 463 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.1303, allocations: 11.94 kB / 463 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008592/0.1312, allocations: 282.7 kB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.1317, allocations: 262.7 kB / 463.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.1323, allocations: 267.4 kB / 463.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.1329, allocations: 0.6235 MB / 464.4 MB, free: 480 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003992/0.1333, allocations: 292.6 kB / 464.7 MB, free: 188 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.1336, allocations: 282.9 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005159/0.1342, allocations: 382.8 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.557e-05/0.1343, allocations: 48 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002758/0.1345, allocations: 155.8 kB / 465.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.1348, allocations: 247.4 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.135, allocations: 266.7 kB / 466 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006082/0.1357, allocations: 0.6541 MB / 466.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1357, allocations: 0 / 466.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1357, allocations: 0 / 466.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1357, allocations: 0 / 466.7 MB, free: 14.17 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001735/0.1374, allocations: 0.8828 MB / 467.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1375, allocations: 15.89 kB / 467.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.2e-05/0.1376, allocations: 90.7 kB / 467.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000533/0.1381, allocations: 100.1 kB / 467.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008634/0.139, allocations: 475.8 kB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.139, allocations: 33.38 kB / 468.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1392, allocations: 55.84 kB / 468.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009028/0.1401, allocations: 0.6879 MB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.1401, allocations: 11.92 kB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.747e-05/0.1402, allocations: 16 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.1403, allocations: 36.98 kB / 469.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007764/0.1411, allocations: 0.5267 MB / 469.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003492/0.1446, allocations: 3.098 MB / 472.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.1451, allocations: 325.2 kB / 473 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.1454, allocations: 170.7 kB / 473.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.1454, allocations: 4 kB / 473.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.1455, allocations: 42.56 kB / 473.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.846e-06/0.1455, allocations: 0 / 473.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001888/0.1474, allocations: 1.218 MB / 474.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1474, allocations: 81.11 kB / 474.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.1478, allocations: 385.6 kB / 474.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1478, allocations: 33.7 kB / 474.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.148, allocations: 303.1 kB / 475.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.818e-05/0.1481, allocations: 114.4 kB / 475.3 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.1483, allocations: 106.1 kB / 475.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1484, allocations: 354.8 kB / 475.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.1487, allocations: 197 kB / 476 MB, free: 4.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.1491, allocations: 377.5 kB / 476.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007152/0.1498, allocations: 0.5972 MB / 477 MB, free: 3.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1498, allocations: 4 kB / 477 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00188/0.1517, allocations: 0.8295 MB / 477.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1517, allocations: 8.625 kB / 477.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.1518, allocations: 12 kB / 477.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.153, allocations: 261.4 kB / 478.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.1536, allocations: 139.8 kB / 478.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004736/0.1584, allocations: 4.056 MB / 482.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.1587, allocations: 35.95 kB / 482.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.1588, allocations: 31.92 kB / 482.3 MB, free: 13.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * 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 {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.159, allocations: 217.9 kB / 482.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.1591, allocations: 39.53 kB / 482.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007544/0.1599, allocations: 493.1 kB / 483.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1599, allocations: 7.938 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.1599, allocations: 0 / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1599, allocations: 0 / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.1613, allocations: 1.007 MB / 484.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1613, allocations: 7.938 kB / 484.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.1617, allocations: 91.86 kB / 484.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1618, allocations: 8.062 kB / 484.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.1618, allocations: 11.98 kB / 484.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1618, allocations: 0 / 484.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1618, allocations: 7.938 kB / 484.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009204/0.1627, allocations: 0.7434 MB / 484.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.888e-05/0.1628, allocations: 124.5 kB / 485.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/0.1629, allocations: 8 kB / 485.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.1632, allocations: 15.98 kB / 485.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.1632, allocations: 23.97 kB / 485.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.1633, allocations: 19.92 kB / 485.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.1635, allocations: 267.1 kB / 485.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1635, allocations: 0 / 485.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005106/0.164, allocations: 120 kB / 485.5 MB, free: 10.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001144/0.1652, allocations: 1.3 MB / 486.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.1667, allocations: 0.8497 MB / 487.7 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1668, allocations: 4.062 kB / 487.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000279/0.167, allocations: 199.8 kB / 487.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.1676, allocations: 88.98 kB / 487.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008629/0.1763, allocations: 5.341 MB / 493.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.1767, allocations: 0.8898 MB / 494.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003756/0.1771, allocations: 135.3 kB / 494.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.1774, allocations: 175.4 kB / 494.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1774, allocations: 0 / 494.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.2093, allocations: 10.45 MB / 0.4931 GB, free: 6.602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.67, allocations: 7.797 kB / 0.4931 GB, free: 6.594 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Load.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1)