Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.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.Transmission.VoltageStability,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",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.001698/0.001698, allocations: 112.2 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.001987/0.001987, 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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.164/0.164, allocations: 38.04 MB / 329.3 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 60.45 kB / 398.2 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09452, allocations: 58.08 MB / 456.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.009997/0.1046, allocations: 10.98 MB / 467.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006381/0.111, allocations: 3.716 MB / 471 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.1121, allocations: 75.5 kB / 471 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1145, allocations: 1.011 MB / 472 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.1158, allocations: 0.5873 MB / 472.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001566/0.1174, allocations: 0.6473 MB / 473.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002205/0.1196, allocations: 2.464 MB / 475.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.1208, allocations: 0.873 MB / 476.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008719/0.1217, allocations: 0.6261 MB / 477.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.1228, allocations: 0.9892 MB / 478.2 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.1229, allocations: 72 kB / 478.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008059/0.1237, allocations: 471.2 kB / 478.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005366/0.1243, allocations: 0.6468 MB / 479.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006469/0.1249, allocations: 0.6762 MB / 480.1 MB, free: 476 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00146/0.1264, allocations: 1.733 MB / 481.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1264, allocations: 0 / 481.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1264, allocations: 0 / 481.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.1265, allocations: 0 / 481.8 MB, free: 14.73 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.002653/0.1291, allocations: 1.646 MB / 483.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.1292, allocations: 16.03 kB / 483.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001946/0.1294, allocations: 194.4 kB / 483.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/0.1309, allocations: 275 kB / 483.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.1323, allocations: 0.8402 MB / 484.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.034e-05/0.1324, allocations: 86.7 kB / 484.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003174/0.1328, allocations: 159.8 kB / 485 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.1352, allocations: 1.843 MB / 486.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.756e-05/0.1352, allocations: 11.92 kB / 486.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.1354, allocations: 55.98 kB / 486.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000289/0.1357, allocations: 98.16 kB / 487 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.1378, allocations: 1.491 MB / 488.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008262/0.1461, allocations: 8.292 MB / 496.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.1474, allocations: 1.163 MB / 498 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006126/0.148, allocations: 492.2 kB / 498.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-05/0.1481, allocations: 12.64 kB / 498.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.1481, allocations: 51.14 kB / 498.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=82): time 2.806e-06/0.1481, allocations: 4 kB / 498.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.0036/0.1518, allocations: 2.429 MB / 0.4892 GB, free: 10.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.1518, allocations: 89.7 kB / 0.4893 GB, free: 10.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008141/0.1526, allocations: 0.8213 MB / 0.4901 GB, free: 9.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.1527, allocations: 33.7 kB / 0.4901 GB, free: 9.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.1531, allocations: 0.6918 MB / 0.4908 GB, free: 9.078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.1533, allocations: 307.9 kB / 0.4911 GB, free: 8.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002952/0.1536, allocations: 255.3 kB / 0.4913 GB, free: 8.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1538, allocations: 414.7 kB / 0.4917 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006277/0.1545, allocations: 447.7 kB / 0.4922 GB, free: 7.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009791/0.1555, allocations: 1.008 MB / 0.4931 GB, free: 6.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.1572, allocations: 1.585 MB / 0.4947 GB, free: 4.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.1572, allocations: 8 kB / 0.4947 GB, free: 4.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002808/0.1601, allocations: 1.764 MB / 0.4964 GB, free: 2.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1601, allocations: 16.19 kB / 0.4964 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001602/0.1617, allocations: 0.992 MB / 0.4974 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008323/0.1625, allocations: 246.3 kB / 0.4976 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009087/0.1635, allocations: 307.5 kB / 0.4979 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.1676, allocations: 4.794 MB / 0.5026 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006603/0.1683, allocations: 64.05 kB / 0.5027 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.331e-05/0.1684, allocations: 71.92 kB / 0.5027 GB, free: 11.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (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.0005286/0.1689, allocations: 425.1 kB / 0.5031 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.169, allocations: 102.7 kB / 0.5032 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.1705, allocations: 0.9495 MB / 0.5042 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.1705, allocations: 15.98 kB / 0.5042 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1705, allocations: 3.984 kB / 0.5042 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.1705, allocations: 3.984 kB / 0.5042 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/0.1738, allocations: 2.115 MB / 0.5063 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1738, allocations: 4 kB / 0.5063 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008459/0.1746, allocations: 191.7 kB / 0.5064 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1747, allocations: 4 kB / 0.5064 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.126e-05/0.1747, allocations: 23.98 kB / 0.5065 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.1747, allocations: 7.938 kB / 0.5065 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1747, allocations: 4 kB / 0.5065 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.1764, allocations: 1.408 MB / 0.5079 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1766, allocations: 167.7 kB / 0.508 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.1767, allocations: 23.98 kB / 0.508 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.1771, allocations: 27.92 kB / 0.5081 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.233e-05/0.1772, allocations: 56.58 kB / 0.5081 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/0.1772, allocations: 20.09 kB / 0.5081 GB, free: 6.184 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005655/0.1778, allocations: 0.5419 MB / 0.5087 GB, free: 5.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1778, allocations: 0 / 0.5087 GB, free: 5.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009421/0.1788, allocations: 296 kB / 0.509 GB, free: 5.355 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.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 (86): * Single equations (assignments): 85 * 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.001951/0.1807, allocations: 1.973 MB / 0.5109 GB, free: 3.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.1827, allocations: 1.458 MB / 0.5123 GB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1827, allocations: 0 / 0.5123 GB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.1832, allocations: 411.4 kB / 0.5127 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008109/0.184, allocations: 180.9 kB / 0.5129 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1854/0.3694, allocations: 11.13 MB / 0.5237 GB, free: 65.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008211/0.3703, allocations: 1.246 MB / 0.525 GB, free: 65.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3714, allocations: 418.6 kB / 0.5254 GB, free: 65.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004838/0.3719, allocations: 470.5 kB / 0.5258 GB, free: 64.69 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3719, allocations: 0 / 0.5258 GB, free: 64.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03301/0.4049, allocations: 19.91 MB / 0.5452 GB, free: 54.93 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/0.4051, allocations: 236.3 kB / 0.5455 GB, free: 54.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.449, allocations: 3.75 kB / 0.5455 GB, free: 54.68 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability_fmu --startTime=0 --stopTime=180 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.VoltageStability.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches