Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.001066/0.001066, allocations: 106.6 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.001169/0.001169, 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.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1742/0.1742, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 64.41 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.00329/0.111, allocations: 2.039 MB / 459 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006854/0.1117, allocations: 0.526 MB / 459.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.795e-05/0.1117, allocations: 0 / 459.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.1119, allocations: 15.92 kB / 459.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.686e-05/0.112, allocations: 19.84 kB / 459.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.1123, allocations: 71.83 kB / 459.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.1124, allocations: 67.7 kB / 459.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.534e-05/0.1125, allocations: 4 kB / 459.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.037e-05/0.1125, allocations: 27.84 kB / 459.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.651e-05/0.1126, allocations: 23.91 kB / 459.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.1126, allocations: 4 kB / 459.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.1128, allocations: 75.84 kB / 459.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.1129, allocations: 43.84 kB / 459.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.315e-05/0.1129, allocations: 47.55 kB / 459.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.1131, allocations: 151.7 kB / 460.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1131, allocations: 4 kB / 460.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1131, allocations: 0 / 460.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1131, allocations: 0 / 460.1 MB, free: 4.82 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000407/0.1135, allocations: 480.5 kB / 460.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1136, allocations: 11.89 kB / 460.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.1136, allocations: 50.73 kB / 460.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.1137, allocations: 12.75 kB / 460.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.1138, allocations: 200.3 kB / 460.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-06/0.1139, allocations: 3.938 kB / 460.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.1139, allocations: 0 / 460.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.114, allocations: 134.6 kB / 461 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.1141, allocations: 0 / 461 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.1141, allocations: 0 / 461 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1141, allocations: 0 / 461 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.866e-05/0.1142, allocations: 92.3 kB / 461 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001512/0.1143, allocations: 202 kB / 461.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.1145, allocations: 158.8 kB / 461.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1146, allocations: 141.2 kB / 461.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.1146, allocations: 0 / 461.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1146, allocations: 38.56 kB / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 8.72e-07/0.1146, allocations: 0 / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005432/0.1152, allocations: 471.6 kB / 462 MB, free: 2.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.1152, allocations: 113.1 kB / 462.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1154, allocations: 148.5 kB / 462.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1154, allocations: 25.7 kB / 462.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.1155, allocations: 100.8 kB / 462.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.1156, allocations: 133.9 kB / 462.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.1156, allocations: 33.64 kB / 462.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1158, allocations: 338.8 kB / 462.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.854e-05/0.1159, allocations: 91.97 kB / 463 MB, free: 1.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.354e-05/0.116, allocations: 88.95 kB / 463.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.1163, allocations: 368.4 kB / 463.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1163, allocations: 0 / 463.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003194/0.1166, allocations: 319.1 kB / 463.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-05/0.1167, allocations: 93.56 kB / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1167, allocations: 0 / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.1167, allocations: 0 / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.1167, allocations: 0 / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.1167, allocations: 0 / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.79e-05/0.1168, allocations: 23.69 kB / 463.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.1168, allocations: 12 kB / 463.9 MB, free: 0.7344 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.0002033/0.117, allocations: 239.3 kB / 464.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.1171, allocations: 23.81 kB / 464.1 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.1171, allocations: 13.97 kB / 464.2 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1171, allocations: 3.984 kB / 464.2 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1171, allocations: 0 / 464.2 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1171, allocations: 0 / 464.2 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.1173, allocations: 237.1 kB / 464.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1173, allocations: 0 / 464.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1173, allocations: 0 / 464.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1173, allocations: 4 kB / 464.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1173, allocations: 4 kB / 464.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1174, allocations: 3.984 kB / 464.4 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1174, allocations: 0 / 464.4 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.1183, allocations: 0.9005 MB / 465.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.1184, allocations: 100.8 kB / 465.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.1184, allocations: 4 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.365e-05/0.1184, allocations: 8 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.841e-05/0.1185, allocations: 11.88 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1185, allocations: 8 kB / 465.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.862e-05/0.1186, allocations: 118.2 kB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1186, allocations: 4.031 kB / 465.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.1189, allocations: 64 kB / 465.6 MB, free: 14.89 MB / 350.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.001147/0.12, allocations: 1.457 MB / 467.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.1212, allocations: 1.585 MB / 468.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.1212, allocations: 96 / 468.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.1222, allocations: 1.37 MB / 470 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.1225, allocations: 27.94 kB / 470.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.1259, allocations: 3.423 MB / 473.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.1263, allocations: 0.7439 MB / 474.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.867e-05/0.1263, allocations: 4.25 kB / 474.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.68e-05/0.1264, allocations: 39.42 kB / 474.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1264, allocations: 7.969 kB / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01927/0.1457, allocations: 4.803 MB / 479.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.165/7.311, allocations: 0.5 kB / 479.1 MB, free: 1.379 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches