Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001844/0.001844, allocations: 110.2 kB / 16.92 MB, free: 6.332 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.001952/0.001952, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.46/1.46, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.05 MB / 329.8 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 69.25 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.151, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003748/0.1548, allocations: 2.032 MB / 459 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009125/0.1558, allocations: 0.5221 MB / 459.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.1559, allocations: 0 / 459.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.156, allocations: 11.92 kB / 459.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1562, allocations: 27.83 kB / 459.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.1566, allocations: 67.83 kB / 459.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.1568, allocations: 63.7 kB / 459.7 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.146e-05/0.1568, allocations: 8 kB / 459.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.865e-05/0.1569, allocations: 31.84 kB / 459.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.012e-05/0.157, allocations: 27.91 kB / 459.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.157, allocations: 0 / 459.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.1572, allocations: 75.84 kB / 459.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.1573, allocations: 19.92 kB / 459.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.1573, allocations: 27.8 kB / 459.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.1575, allocations: 104 kB / 460 MB, free: 4.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1575, allocations: 0 / 460 MB, free: 4.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1575, allocations: 0 / 460 MB, free: 4.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1576, allocations: 0 / 460 MB, free: 4.938 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004571/0.158, allocations: 393 kB / 460.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.1581, allocations: 15.89 kB / 460.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.1581, allocations: 42.67 kB / 460.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.1582, allocations: 8.844 kB / 460.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.1584, allocations: 192.1 kB / 460.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.1584, allocations: 384 / 460.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1584, allocations: 3.938 kB / 460.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.1586, allocations: 61.62 kB / 460.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.1586, allocations: 4 kB / 460.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.1586, allocations: 0 / 460.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1586, allocations: 0 / 460.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.292e-05/0.1587, allocations: 35.92 kB / 460.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.1589, allocations: 173.5 kB / 460.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.647e-05/0.159, allocations: 58.5 kB / 461 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.242e-05/0.159, allocations: 40.89 kB / 461 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.159, allocations: 3.984 kB / 461 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.1591, allocations: 34.56 kB / 461 MB, free: 3.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.1591, allocations: 0 / 461 MB, free: 3.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002898/0.1594, allocations: 179.3 kB / 461.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.1595, allocations: 89.31 kB / 461.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.1596, allocations: 121.8 kB / 461.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1596, allocations: 25.7 kB / 461.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.1597, allocations: 88.12 kB / 461.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.967e-05/0.1597, allocations: 43.36 kB / 461.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/0.1598, allocations: 17.75 kB / 461.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1599, allocations: 322.8 kB / 461.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.335e-05/0.1599, allocations: 27.98 kB / 461.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.481e-05/0.16, allocations: 27.98 kB / 462 MB, free: 2.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.1601, allocations: 157.1 kB / 462.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1602, allocations: 0 / 462.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001662/0.1603, allocations: 151.1 kB / 462.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.479e-05/0.1604, allocations: 45.69 kB / 462.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1604, allocations: 7.938 kB / 462.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1604, allocations: 4.062 kB / 462.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1604, allocations: 0 / 462.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.237e-06/0.1604, allocations: 0 / 462.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.559e-05/0.1605, allocations: 4 kB / 462.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1605, allocations: 4 kB / 462.3 MB, free: 2.328 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.1606, allocations: 171.4 kB / 462.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.1607, allocations: 11.91 kB / 462.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.515e-05/0.1607, allocations: 4.375 kB / 462.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1607, allocations: 0 / 462.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1607, allocations: 4 kB / 462.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1607, allocations: 7.984 kB / 462.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.1609, allocations: 185.4 kB / 462.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1609, allocations: 0 / 462.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.1609, allocations: 4 kB / 462.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1609, allocations: 0 / 462.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1609, allocations: 0 / 462.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1609, allocations: 4 kB / 462.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1609, allocations: 0 / 462.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/0.1613, allocations: 290.4 kB / 463 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.1613, allocations: 81.02 kB / 463.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.1613, allocations: 4 kB / 463.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.785e-05/0.1614, allocations: 3.938 kB / 463.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.234e-05/0.1614, allocations: 4 kB / 463.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.1614, allocations: 4 kB / 463.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.874e-05/0.1615, allocations: 95.27 kB / 463.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1615, allocations: 0 / 463.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1617, allocations: 28 kB / 463.2 MB, free: 1.332 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.0007257/0.1624, allocations: 0.8365 MB / 464 MB, free: 472 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.1628, allocations: 287.3 kB / 464.3 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.1628, allocations: 0 / 464.3 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.1631, allocations: 219.3 kB / 464.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.1634, allocations: 21.41 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.1652, allocations: 1.749 MB / 466.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.1655, allocations: 0.7002 MB / 467 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.946e-05/0.1655, allocations: 3.859 kB / 467 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.1656, allocations: 19.47 kB / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1656, allocations: 0 / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.1869, allocations: 2.532 MB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/7.727, allocations: 3.078 kB / 469.6 MB, free: 10.91 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches