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.001167/0.001168, allocations: 108.2 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.001282/0.001282, 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.317/1.317, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1704/0.1704, allocations: 38.04 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 60.91 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09348, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.008815/0.1023, allocations: 8.928 MB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004516/0.1069, allocations: 3.045 MB / 468.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004828/0.1074, allocations: 31.81 kB / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002514/0.1099, allocations: 1.072 MB / 470.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.1112, allocations: 0.6219 MB / 470.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.1129, allocations: 0.7249 MB / 471.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00171/0.1146, allocations: 1.629 MB / 473 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.1157, allocations: 0.9014 MB / 473.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.1168, allocations: 0.7237 MB / 474.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.1179, allocations: 0.9424 MB / 475.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.1181, allocations: 104 kB / 475.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008482/0.119, allocations: 455.3 kB / 476.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005673/0.1195, allocations: 0.6664 MB / 476.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007503/0.1203, allocations: 0.7074 MB / 477.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.122, allocations: 1.748 MB / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.122, allocations: 0 / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.122, allocations: 0 / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.1221, allocations: 4 kB / 479.3 MB, free: 1.551 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.002787/0.1249, allocations: 1.65 MB / 480.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1249, allocations: 11.89 kB / 480.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002299/0.1252, allocations: 198.4 kB / 481.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/0.1268, allocations: 274.9 kB / 481.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.1281, allocations: 0.8324 MB / 482.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.215e-05/0.1282, allocations: 94.7 kB / 482.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/0.1285, allocations: 155.8 kB / 482.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.1308, allocations: 1.843 MB / 484.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.1309, allocations: 11.94 kB / 484.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.131, allocations: 51.98 kB / 484.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002787/0.1313, allocations: 102.1 kB / 484.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.1334, allocations: 1.491 MB / 486 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008999/0.1424, allocations: 8.292 MB / 494.3 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.1438, allocations: 1.166 MB / 495.4 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006508/0.1444, allocations: 488.2 kB / 495.9 MB, free: 144 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.399e-05/0.1445, allocations: 16.58 kB / 495.9 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.1446, allocations: 55.14 kB / 496 MB, free: 64 kB / 366.1 MB Notification: Performance of pre-optimization done (n=82): time 2.995e-06/0.1446, allocations: 0 / 496 MB, free: 64 kB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.00378/0.1483, allocations: 2.425 MB / 498.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.1484, allocations: 97.62 kB / 498.5 MB, free: 13.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008944/0.1493, allocations: 0.8212 MB / 499.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/0.1494, allocations: 41.7 kB / 499.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004753/0.1499, allocations: 0.6804 MB / 0.4883 GB, free: 11.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.1501, allocations: 307.7 kB / 0.4886 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/0.1505, allocations: 255.4 kB / 0.4888 GB, free: 11.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1507, allocations: 410.7 kB / 0.4892 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.1514, allocations: 455.7 kB / 0.4897 GB, free: 10.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.1524, allocations: 1.005 MB / 0.4907 GB, free: 9.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001825/0.1542, allocations: 1.592 MB / 0.4922 GB, free: 7.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/0.1543, allocations: 4 kB / 0.4922 GB, free: 7.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003059/0.1573, allocations: 1.772 MB / 0.4939 GB, free: 5.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.1574, allocations: 12 kB / 0.494 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001706/0.1591, allocations: 0.9959 MB / 0.4949 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009223/0.16, allocations: 246.4 kB / 0.4952 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.1611, allocations: 311.5 kB / 0.4955 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004557/0.1657, allocations: 5.172 MB / 0.5005 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008659/0.1666, allocations: 59.89 kB / 0.5006 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.1667, allocations: 71.98 kB / 0.5006 GB, free: 14.28 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.0006298/0.1674, allocations: 425.2 kB / 0.501 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/0.1676, allocations: 94.78 kB / 0.5011 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.169, allocations: 0.9571 MB / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.1691, allocations: 11.94 kB / 0.5021 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.1691, allocations: 0 / 0.5021 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.1691, allocations: 3.984 kB / 0.5021 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.1726, allocations: 2.131 MB / 0.5042 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.1727, allocations: 4 kB / 0.5042 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008579/0.1735, allocations: 184 kB / 0.5043 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.1736, allocations: 4 kB / 0.5043 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-05/0.1736, allocations: 27.98 kB / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.094e-06/0.1736, allocations: 4 kB / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1736, allocations: 0 / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.1754, allocations: 1.412 MB / 0.5058 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.1756, allocations: 164 kB / 0.5059 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1758, allocations: 24 kB / 0.5059 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.1762, allocations: 23.97 kB / 0.506 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.55e-05/0.1763, allocations: 64.55 kB / 0.506 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.1763, allocations: 24 kB / 0.506 GB, free: 8.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005896/0.1769, allocations: 0.5419 MB / 0.5066 GB, free: 8.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1769, allocations: 0 / 0.5066 GB, free: 8.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009801/0.1779, allocations: 292 kB / 0.5069 GB, free: 7.77 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.002042/0.18, allocations: 1.969 MB / 0.5088 GB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.1828, allocations: 1.759 MB / 0.5105 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.1828, allocations: 0.5 kB / 0.5105 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005332/0.1834, allocations: 419.4 kB / 0.5109 GB, free: 3.547 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/0.1843, allocations: 183.1 kB / 0.5111 GB, free: 3.375 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1847/0.369, allocations: 10.66 MB / 0.5215 GB, free: 66.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.3698, allocations: 1.248 MB / 0.5227 GB, free: 65.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00104/0.3708, allocations: 420.5 kB / 0.5231 GB, free: 65.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.3713, allocations: 467.4 kB / 0.5235 GB, free: 65.45 MB / 398.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3713, allocations: 0 / 0.5235 GB, free: 65.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04684/0.4181, allocations: 20.5 MB / 0.5436 GB, free: 55.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.14/9.558, allocations: 9.484 kB / 0.5436 GB, free: 55.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches