Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001194/0.001194, allocations: 109.4 kB / 16.51 MB, free: 6.707 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.001241/0.001241, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.248/1.248, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1606/0.1606, allocations: 38.04 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 64.55 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1012, allocations: 58.06 MB / 456.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005593/0.1068, allocations: 5.045 MB / 461.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.1094, allocations: 1.722 MB / 463 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002969/0.1097, allocations: 27.81 kB / 463 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006665/0.1105, allocations: 261.1 kB / 463.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005345/0.111, allocations: 266.9 kB / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005279/0.1115, allocations: 219.6 kB / 463.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008108/0.1124, allocations: 0.9512 MB / 464.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.1127, allocations: 215.5 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003188/0.113, allocations: 227 kB / 465.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.1135, allocations: 382.9 kB / 465.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.303e-05/0.1136, allocations: 32 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.1141, allocations: 239.5 kB / 465.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.1143, allocations: 219.4 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.1145, allocations: 234.8 kB / 466.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006389/0.1152, allocations: 0.6542 MB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1152, allocations: 3.938 kB / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1152, allocations: 0 / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1152, allocations: 0 / 466.9 MB, free: 13.76 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001288/0.1165, allocations: 0.7661 MB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.1165, allocations: 8.031 kB / 467.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.234e-05/0.1166, allocations: 90.69 kB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005614/0.1172, allocations: 88.22 kB / 467.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.1177, allocations: 411.1 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.1178, allocations: 29.36 kB / 468.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1179, allocations: 47.94 kB / 468.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009179/0.1188, allocations: 0.6953 MB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.1188, allocations: 0 / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.1189, allocations: 16 kB / 469 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002021/0.1191, allocations: 72.94 kB / 469.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009884/0.1201, allocations: 0.6674 MB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.1231, allocations: 2.654 MB / 472.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.1236, allocations: 313.2 kB / 472.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.1239, allocations: 213.7 kB / 472.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.124, allocations: 11.98 kB / 473 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.124, allocations: 34.56 kB / 473 MB, free: 7.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.714e-06/0.124, allocations: 0 / 473 MB, free: 7.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00171/0.1257, allocations: 1.292 MB / 474.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1258, allocations: 85.23 kB / 474.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.126, allocations: 291.2 kB / 474.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.1261, allocations: 29.7 kB / 474.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1262, allocations: 251.6 kB / 474.9 MB, free: 5.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.1263, allocations: 145.9 kB / 475.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.1264, allocations: 78.12 kB / 475.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1265, allocations: 346.8 kB / 475.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.1268, allocations: 188.9 kB / 475.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.1271, allocations: 329.2 kB / 476 MB, free: 4.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.1278, allocations: 0.5623 MB / 476.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1278, allocations: 0 / 476.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001121/0.1289, allocations: 0.6896 MB / 477.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1289, allocations: 4 kB / 477.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007728/0.1297, allocations: 483.5 kB / 477.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.1301, allocations: 121.9 kB / 477.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.1304, allocations: 79.83 kB / 477.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.1329, allocations: 3.022 MB / 480.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1332, allocations: 23.97 kB / 481 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/0.1333, allocations: 16 kB / 481 MB, free: 14.85 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002288/0.1335, allocations: 209.7 kB / 481.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.196e-05/0.1336, allocations: 35.53 kB / 481.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006581/0.1342, allocations: 476.5 kB / 481.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.1343, allocations: 12 kB / 481.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.1343, allocations: 0 / 481.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.1343, allocations: 3.984 kB / 481.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.1356, allocations: 1.017 MB / 482.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1356, allocations: 3.938 kB / 482.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003216/0.1359, allocations: 63.89 kB / 482.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.136, allocations: 8.062 kB / 482.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.136, allocations: 11.98 kB / 482.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.123e-06/0.136, allocations: 0 / 482.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.136, allocations: 4 kB / 482.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008811/0.1369, allocations: 0.7512 MB / 483.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1371, allocations: 140.7 kB / 483.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.1371, allocations: 8 kB / 483.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.1373, allocations: 15.97 kB / 483.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.1373, allocations: 23.92 kB / 483.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.1374, allocations: 7.984 kB / 483.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001868/0.1376, allocations: 207.1 kB / 483.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1376, allocations: 0 / 483.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004819/0.1381, allocations: 112 kB / 484.1 MB, free: 11.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001251/0.1393, allocations: 1.335 MB / 485.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009856/0.1403, allocations: 0.7124 MB / 486.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1403, allocations: 1.125 kB / 486.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.1406, allocations: 207.8 kB / 486.3 MB, free: 9.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.1411, allocations: 64.75 kB / 486.4 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005301/0.1464, allocations: 4.558 MB / 490.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.1469, allocations: 0.8743 MB / 491.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003073/0.1472, allocations: 111.2 kB / 491.9 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.1474, allocations: 143.4 kB / 492.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1474, allocations: 0 / 492.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.1664, allocations: 7.709 MB / 499.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.1667, allocations: 233 kB / 500 MB, free: 11.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.02, allocations: 4.062 kB / 500 MB, free: 11.5 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches