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.001356/0.001356, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001541/0.001541, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.638/1.638, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.1921/0.1921, allocations: 38.52 MB / 353.2 MB, free: 12.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="cs",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.002261/0.002261, allocations: 59.91 kB / 493.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.338, allocations: 62.47 MB / 0.5428 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006694/0.3447, allocations: 4.582 MB / 0.5472 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003603/0.3483, allocations: 1.498 MB / 0.5487 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/0.3487, allocations: 16.81 kB / 0.5487 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.35, allocations: 399.6 kB / 0.5491 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007332/0.3507, allocations: 250.6 kB / 0.5493 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.3515, allocations: 250.4 kB / 0.5496 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007235/0.3523, allocations: 0.5576 MB / 0.5501 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004529/0.3527, allocations: 233.1 kB / 0.5503 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005792/0.3533, allocations: 266.2 kB / 0.5506 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.3539, allocations: 377.8 kB / 0.5509 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.354, allocations: 40.25 kB / 0.551 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005816/0.3546, allocations: 249.5 kB / 0.5512 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.3548, allocations: 249.9 kB / 0.5515 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.3551, allocations: 254 kB / 0.5517 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009511/0.3561, allocations: 0.6844 MB / 0.5524 GB, free: 9.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3561, allocations: 0 / 0.5524 GB, free: 9.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3561, allocations: 5.031 kB / 0.5524 GB, free: 9.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3561, allocations: 0 / 0.5524 GB, free: 9.266 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.00166/0.3577, allocations: 0.7069 MB / 0.5531 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3578, allocations: 14.17 kB / 0.5531 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.528e-05/0.3578, allocations: 11.16 kB / 0.5531 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.3579, allocations: 87.83 kB / 0.5532 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007805/0.3587, allocations: 128.1 kB / 0.5533 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007836/0.3595, allocations: 356.1 kB / 0.5536 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.3595, allocations: 37.39 kB / 0.5537 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3597, allocations: 48.36 kB / 0.5537 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.3609, allocations: 0.6722 MB / 0.5544 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3609, allocations: 5.141 kB / 0.5544 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.513e-05/0.361, allocations: 19.44 kB / 0.5544 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001795/0.3612, allocations: 50.44 kB / 0.5544 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.3622, allocations: 0.6663 MB / 0.5551 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003924/0.3662, allocations: 2.46 MB / 0.5575 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005828/0.3667, allocations: 309.1 kB / 0.5578 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.367, allocations: 209.6 kB / 0.558 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.3671, allocations: 11.92 kB / 0.558 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3671, allocations: 34.56 kB / 0.558 GB, free: 4.609 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.3671, allocations: 4 kB / 0.558 GB, free: 4.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002314/0.3694, allocations: 1.283 MB / 0.5593 GB, free: 3.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.3695, allocations: 85.05 kB / 0.5594 GB, free: 3.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.3699, allocations: 304.5 kB / 0.5597 GB, free: 2.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.37, allocations: 37.69 kB / 0.5597 GB, free: 2.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.3702, allocations: 264.2 kB / 0.56 GB, free: 2.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.3703, allocations: 158.8 kB / 0.5601 GB, free: 2.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.3705, allocations: 98.14 kB / 0.5602 GB, free: 2.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3707, allocations: 346.8 kB / 0.5605 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.371, allocations: 201 kB / 0.5607 GB, free: 1.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.3714, allocations: 361.6 kB / 0.5611 GB, free: 1.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008202/0.3723, allocations: 0.6021 MB / 0.5617 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3723, allocations: 4 kB / 0.5617 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001017/0.3733, allocations: 0.6343 MB / 0.5623 GB, free: 32 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3733, allocations: 8 kB / 0.5623 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.3733, allocations: 4 kB / 0.5623 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.3733, allocations: 8.688 kB / 0.5623 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.3738, allocations: 111.9 kB / 0.5624 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.3738, allocations: 11.94 kB / 0.5624 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.3741, allocations: 27.97 kB / 0.5624 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.3741, allocations: 27.98 kB / 0.5625 GB, free: 15.83 MB / 414.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.0002846/0.3744, allocations: 213.6 kB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.6e-05/0.3745, allocations: 35.77 kB / 0.5627 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008633/0.3754, allocations: 0.4964 MB / 0.5632 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.3754, allocations: 12 kB / 0.5632 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3754, allocations: 4 kB / 0.5632 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3754, allocations: 3.984 kB / 0.5632 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.3774, allocations: 1.073 MB / 0.5643 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3774, allocations: 0 / 0.5643 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.3778, allocations: 75.89 kB / 0.5643 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.3778, allocations: 7.922 kB / 0.5643 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.3779, allocations: 11.94 kB / 0.5643 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.3779, allocations: 4 kB / 0.5643 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3779, allocations: 0 / 0.5643 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.3791, allocations: 0.8284 MB / 0.5652 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.3792, allocations: 31.77 kB / 0.5652 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.973e-05/0.3793, allocations: 12.12 kB / 0.5652 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.3795, allocations: 15.98 kB / 0.5652 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.945e-05/0.3795, allocations: 31.88 kB / 0.5652 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/0.3796, allocations: 8 kB / 0.5653 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.3799, allocations: 211.1 kB / 0.5655 GB, free: 12.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3799, allocations: 0 / 0.5655 GB, free: 12.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005896/0.3804, allocations: 115.9 kB / 0.5656 GB, free: 12.55 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.001727/0.3822, allocations: 1.396 MB / 0.5669 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008238/0.383, allocations: 473.2 kB / 0.5674 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.383, allocations: 0 / 0.5674 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.3833, allocations: 200.8 kB / 0.5676 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.3839, allocations: 71.97 kB / 0.5676 GB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006648/0.3905, allocations: 4.415 MB / 0.572 GB, free: 5.742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006701/0.3912, allocations: 0.8665 MB / 0.5728 GB, free: 4.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003694/0.3916, allocations: 127.1 kB / 0.5729 GB, free: 4.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.3918, allocations: 143.4 kB / 0.5731 GB, free: 4.586 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3918, allocations: 0 / 0.5731 GB, free: 4.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.4265, allocations: 8.505 MB / 0.5814 GB, free: 12.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.21, allocations: 8.438 kB / 0.5814 GB, free: 12.23 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: 15.354872707044706]