Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 210.8 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.601/1.601, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1887/0.1887, allocations: 38.55 MB / 352.5 MB, free: 12.37 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 79.88 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3305, allocations: 62.46 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006456/0.3369, allocations: 4.331 MB / 0.5462 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002957/0.3399, allocations: 1.378 MB / 0.5475 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.3402, allocations: 21.66 kB / 0.5475 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3414, allocations: 370.8 kB / 0.5479 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006682/0.342, allocations: 252.8 kB / 0.5481 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007487/0.3428, allocations: 246.2 kB / 0.5484 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007158/0.3435, allocations: 0.5652 MB / 0.5489 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.344, allocations: 223.9 kB / 0.5491 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005288/0.3445, allocations: 270.6 kB / 0.5494 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005587/0.3451, allocations: 369.7 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.257e-05/0.3451, allocations: 40.03 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.3457, allocations: 221.7 kB / 0.55 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.346, allocations: 254.4 kB / 0.5502 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.3462, allocations: 209.8 kB / 0.5504 GB, free: 10 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009103/0.3471, allocations: 0.682 MB / 0.5511 GB, free: 9.562 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.3471, allocations: 1.031 kB / 0.5511 GB, free: 9.562 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3471, allocations: 4 kB / 0.5511 GB, free: 9.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.3472, allocations: 0 / 0.5511 GB, free: 9.559 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001762/0.3489, allocations: 0.7135 MB / 0.5518 GB, free: 8.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.349, allocations: 16.52 kB / 0.5518 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.3491, allocations: 92.48 kB / 0.5519 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008937/0.35, allocations: 123.4 kB / 0.552 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009135/0.3509, allocations: 361.8 kB / 0.5524 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.351, allocations: 29.53 kB / 0.5524 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.3511, allocations: 51.72 kB / 0.5524 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.3524, allocations: 0.6751 MB / 0.5531 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3524, allocations: 1.062 kB / 0.5531 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/0.3525, allocations: 16.75 kB / 0.5531 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.3527, allocations: 49.34 kB / 0.5532 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.3539, allocations: 0.666 MB / 0.5538 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.3581, allocations: 2.358 MB / 0.5561 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/0.3587, allocations: 317 kB / 0.5564 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.359, allocations: 205.7 kB / 0.5566 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.3591, allocations: 11.92 kB / 0.5566 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.3591, allocations: 34.56 kB / 0.5567 GB, free: 4.883 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.254e-06/0.3591, allocations: 4 kB / 0.5567 GB, free: 4.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002492/0.3616, allocations: 1.294 MB / 0.5579 GB, free: 3.547 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.3617, allocations: 81.11 kB / 0.558 GB, free: 3.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.362, allocations: 304.4 kB / 0.5583 GB, free: 3.141 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3621, allocations: 33.7 kB / 0.5583 GB, free: 3.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.3623, allocations: 260.2 kB / 0.5586 GB, free: 2.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.3624, allocations: 158.7 kB / 0.5587 GB, free: 2.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3626, allocations: 98.12 kB / 0.5588 GB, free: 2.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3627, allocations: 346.8 kB / 0.5591 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.363, allocations: 209.2 kB / 0.5593 GB, free: 2.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.3635, allocations: 369.5 kB / 0.5597 GB, free: 1.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00088/0.3644, allocations: 0.5982 MB / 0.5603 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3644, allocations: 4 kB / 0.5603 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001011/0.3654, allocations: 0.6233 MB / 0.5609 GB, free: 312 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3654, allocations: 12.03 kB / 0.5609 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3654, allocations: 4 kB / 0.5609 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3655, allocations: 8 kB / 0.5609 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.3659, allocations: 115.8 kB / 0.561 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.3659, allocations: 11.94 kB / 0.561 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3662, allocations: 23.98 kB / 0.5611 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.3663, allocations: 20 kB / 0.5611 GB, free: 116 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * 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.0003012/0.3666, allocations: 221.5 kB / 0.5613 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.876e-05/0.3667, allocations: 43.69 kB / 0.5613 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008415/0.3675, allocations: 0.4964 MB / 0.5618 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.3675, allocations: 8 kB / 0.5618 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3675, allocations: 0 / 0.5618 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3675, allocations: 4 kB / 0.5618 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.3696, allocations: 1.045 MB / 0.5628 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3696, allocations: 0 / 0.5628 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.3699, allocations: 75.98 kB / 0.5629 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.3699, allocations: 4 kB / 0.5629 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.37, allocations: 11.98 kB / 0.5629 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.37, allocations: 4 kB / 0.5629 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.37, allocations: 0 / 0.5629 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.3712, allocations: 0.8245 MB / 0.5637 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.569e-05/0.3713, allocations: 39.8 kB / 0.5638 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.3713, allocations: 15.94 kB / 0.5638 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3715, allocations: 11.98 kB / 0.5638 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.3716, allocations: 27.89 kB / 0.5638 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.3716, allocations: 12 kB / 0.5638 GB, free: 13.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.3719, allocations: 215.1 kB / 0.5641 GB, free: 12.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3719, allocations: 0 / 0.5641 GB, free: 12.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00054/0.3724, allocations: 108 kB / 0.5642 GB, free: 12.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (33): * Single equations (assignments): 30 * 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.001667/0.3741, allocations: 1.397 MB / 0.5655 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007967/0.3749, allocations: 475.9 kB / 0.566 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3749, allocations: 0 / 0.566 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.3752, allocations: 200.5 kB / 0.5662 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.3757, allocations: 73.86 kB / 0.5662 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006066/0.3818, allocations: 4.411 MB / 0.5705 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.3821, allocations: 274.2 kB / 0.5708 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003586/0.3824, allocations: 123.2 kB / 0.5709 GB, free: 5.629 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.3827, allocations: 139.4 kB / 0.5711 GB, free: 5.492 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3827, allocations: 0 / 0.5711 GB, free: 5.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04013/0.4228, allocations: 8.622 MB / 0.5795 GB, free: 13.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.92, allocations: 11.8 kB / 0.5795 GB, free: 13.04 MB / 430.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.913427222054452]