Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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_matrixEqCirc0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",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.001257/0.001257, allocations: 107.6 kB / 16.92 MB, free: 6.184 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.001181/0.001181, allocations: 191.3 kB / 17.85 MB, free: 5.328 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.42/1.42, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.191/0.191, allocations: 38.03 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 69.28 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.004502/0.1292, allocations: 2.028 MB / 459 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008823/0.1302, allocations: 0.5221 MB / 459.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.316e-05/0.1303, allocations: 3.938 kB / 459.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.1305, allocations: 15.91 kB / 459.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.1307, allocations: 31.89 kB / 459.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1311, allocations: 67.78 kB / 459.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.1313, allocations: 55.78 kB / 459.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.319e-05/0.1314, allocations: 3.984 kB / 459.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1315, allocations: 39.84 kB / 459.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.311e-05/0.1316, allocations: 27.84 kB / 459.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.1316, allocations: 4 kB / 459.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.1318, allocations: 75.83 kB / 459.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.792e-05/0.1319, allocations: 11.98 kB / 459.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.638e-05/0.1319, allocations: 23.81 kB / 459.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.1322, allocations: 99.95 kB / 460 MB, free: 4.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1322, allocations: 4 kB / 460 MB, free: 4.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1322, allocations: 0 / 460 MB, free: 4.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1322, allocations: 0 / 460 MB, free: 4.926 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000552/0.1328, allocations: 381 kB / 460.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1329, allocations: 11.89 kB / 460.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.251e-05/0.1329, allocations: 42.73 kB / 460.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.133, allocations: 4.938 kB / 460.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.1332, allocations: 172.3 kB / 460.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1332, allocations: 384 / 460.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.1333, allocations: 7.875 kB / 460.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.1334, allocations: 57.69 kB / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1335, allocations: 0 / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.1335, allocations: 0 / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1335, allocations: 0 / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.274e-05/0.1335, allocations: 23.98 kB / 460.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002119/0.1338, allocations: 157.6 kB / 460.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.871e-05/0.1339, allocations: 50.5 kB / 460.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.051e-05/0.1339, allocations: 40.81 kB / 460.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1339, allocations: 0 / 460.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.134, allocations: 34.55 kB / 460.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.134, allocations: 3.938 kB / 461 MB, free: 3.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002968/0.1343, allocations: 147.4 kB / 461.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.307e-05/0.1344, allocations: 85.09 kB / 461.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1345, allocations: 113.8 kB / 461.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1345, allocations: 25.7 kB / 461.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.995e-05/0.1346, allocations: 92.17 kB / 461.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.1346, allocations: 35.48 kB / 461.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.1347, allocations: 13.72 kB / 461.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1348, allocations: 322.8 kB / 461.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.111e-05/0.1349, allocations: 19.98 kB / 461.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.78e-05/0.1349, allocations: 16 kB / 461.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.135, allocations: 124.2 kB / 461.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.1351, allocations: 3.938 kB / 461.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001407/0.1352, allocations: 119.4 kB / 462 MB, free: 2.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.1353, allocations: 45.69 kB / 462.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1353, allocations: 0 / 462.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1353, allocations: 0 / 462.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1353, allocations: 4 kB / 462.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.1353, allocations: 3.938 kB / 462.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.814e-05/0.1353, allocations: 3.906 kB / 462.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.1354, allocations: 4 kB / 462.1 MB, free: 2.527 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.0001087/0.1355, allocations: 155.5 kB / 462.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.1355, allocations: 12.02 kB / 462.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.697e-05/0.1355, allocations: 12.38 kB / 462.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1355, allocations: 0 / 462.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1355, allocations: 0 / 462.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1355, allocations: 0 / 462.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.1357, allocations: 173.5 kB / 462.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1357, allocations: 0 / 462.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.1357, allocations: 0 / 462.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1357, allocations: 4 kB / 462.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1357, allocations: 0 / 462.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.1357, allocations: 4 kB / 462.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1357, allocations: 4 kB / 462.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.136, allocations: 218.6 kB / 462.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.1361, allocations: 88.98 kB / 462.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.1361, allocations: 3.984 kB / 462.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.05e-05/0.1361, allocations: 4.375 kB / 462.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.1361, allocations: 3.938 kB / 462.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.1362, allocations: 4 kB / 462.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.865e-05/0.1362, allocations: 99.23 kB / 462.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1362, allocations: 0 / 462.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000247/0.1365, allocations: 28 kB / 462.9 MB, free: 1.617 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.0006076/0.1371, allocations: 0.7507 MB / 463.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002484/0.1374, allocations: 199.3 kB / 463.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1374, allocations: 4.094 kB / 463.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.1375, allocations: 147.4 kB / 464 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.1378, allocations: 8.312 kB / 464 MB, free: 468 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1394, allocations: 1.535 MB / 465.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.1398, allocations: 0.6924 MB / 466.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.67e-05/0.1398, allocations: 4.031 kB / 466.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.1399, allocations: 11.44 kB / 466.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1399, allocations: 0 / 466.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.1595, allocations: 2.159 MB / 468.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.426/7.585, allocations: 3.25 kB / 468.4 MB, free: 12.05 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_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_matrixEqCirc0.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches