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.001275/0.001275, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.001593/0.001593, allocations: 212.6 kB / 24.51 MB, free: 3.938 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.1852/0.1852, allocations: 38.55 MB / 353.2 MB, free: 12.35 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.001993/0.001993, allocations: 64.14 kB / 493.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3632, allocations: 62.47 MB / 0.5427 GB, free: 272 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.00649/0.3697, allocations: 4.328 MB / 0.5469 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002953/0.3726, allocations: 1.376 MB / 0.5483 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003173/0.373, allocations: 21.53 kB / 0.5483 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.3742, allocations: 370.7 kB / 0.5486 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008003/0.375, allocations: 248.3 kB / 0.5489 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008208/0.3758, allocations: 262.6 kB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007267/0.3766, allocations: 0.5531 MB / 0.5497 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000428/0.377, allocations: 228.6 kB / 0.5499 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004387/0.3774, allocations: 266.6 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006245/0.3781, allocations: 381.9 kB / 0.5505 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.091e-05/0.3781, allocations: 38.97 kB / 0.5505 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005558/0.3787, allocations: 239.5 kB / 0.5508 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003133/0.379, allocations: 245.5 kB / 0.551 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002952/0.3793, allocations: 213.1 kB / 0.5512 GB, free: 10 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.3803, allocations: 0.6871 MB / 0.5519 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3803, allocations: 0 / 0.5519 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3803, allocations: 0 / 0.5519 GB, free: 9.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.3803, allocations: 0 / 0.5519 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.001752/0.3821, allocations: 0.7165 MB / 0.5526 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.3821, allocations: 13.83 kB / 0.5526 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.99e-05/0.3822, allocations: 12.31 kB / 0.5526 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.3823, allocations: 84.2 kB / 0.5527 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008511/0.3832, allocations: 123.3 kB / 0.5528 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008547/0.384, allocations: 357.8 kB / 0.5531 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.575e-05/0.3841, allocations: 36.17 kB / 0.5532 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3842, allocations: 40.34 kB / 0.5532 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.3855, allocations: 0.683 MB / 0.5539 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.3855, allocations: 5.344 kB / 0.5539 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.3856, allocations: 16.22 kB / 0.5539 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000206/0.3858, allocations: 44.88 kB / 0.5539 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.387, allocations: 0.6785 MB / 0.5546 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004031/0.391, allocations: 2.353 MB / 0.5569 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.3916, allocations: 315.9 kB / 0.5572 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.392, allocations: 209.6 kB / 0.5574 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.392, allocations: 7.938 kB / 0.5574 GB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.3921, allocations: 38.5 kB / 0.5574 GB, free: 4.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.655e-06/0.3921, allocations: 0 / 0.5574 GB, free: 4.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002308/0.3944, allocations: 1.287 MB / 0.5587 GB, free: 3.598 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.3944, allocations: 89.23 kB / 0.5588 GB, free: 3.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.3948, allocations: 300.5 kB / 0.5591 GB, free: 3.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.3948, allocations: 33.7 kB / 0.5591 GB, free: 3.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.3951, allocations: 264.2 kB / 0.5594 GB, free: 2.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.3952, allocations: 162.6 kB / 0.5595 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.3953, allocations: 94.14 kB / 0.5596 GB, free: 2.629 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.3955, allocations: 354.8 kB / 0.5599 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.3959, allocations: 201 kB / 0.5601 GB, free: 2.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004473/0.3963, allocations: 361.6 kB / 0.5605 GB, free: 1.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/0.3971, allocations: 0.6021 MB / 0.5611 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3971, allocations: 0 / 0.5611 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00105/0.3982, allocations: 0.6382 MB / 0.5617 GB, free: 348 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3982, allocations: 11.98 kB / 0.5617 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.3982, allocations: 7.984 kB / 0.5617 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.3982, allocations: 8.688 kB / 0.5617 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.3987, allocations: 111.8 kB / 0.5618 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.3987, allocations: 8 kB / 0.5618 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.399, allocations: 27.97 kB / 0.5618 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/0.399, allocations: 24 kB / 0.5619 GB, free: 148 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.0002904/0.3993, allocations: 213.7 kB / 0.5621 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3994, allocations: 35.77 kB / 0.5621 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008304/0.4002, allocations: 0.5041 MB / 0.5626 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.4003, allocations: 8 kB / 0.5626 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.4003, allocations: 4 kB / 0.5626 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4003, allocations: 7.984 kB / 0.5626 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.4021, allocations: 1.03 MB / 0.5636 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4021, allocations: 0 / 0.5636 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.4025, allocations: 79.88 kB / 0.5637 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4025, allocations: 0 / 0.5637 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.4025, allocations: 8 kB / 0.5637 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.4025, allocations: 7.938 kB / 0.5637 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4025, allocations: 4.094 kB / 0.5637 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.4037, allocations: 0.8323 MB / 0.5645 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.4037, allocations: 31.77 kB / 0.5646 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.4038, allocations: 8 kB / 0.5646 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.404, allocations: 20.02 kB / 0.5646 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.4041, allocations: 27.84 kB / 0.5646 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.4041, allocations: 8 kB / 0.5646 GB, free: 13.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002327/0.4043, allocations: 215 kB / 0.5648 GB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4043, allocations: 0 / 0.5648 GB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005144/0.4048, allocations: 111.9 kB / 0.5649 GB, free: 12.9 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.001608/0.4064, allocations: 1.393 MB / 0.5663 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007538/0.4072, allocations: 472.9 kB / 0.5667 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4072, allocations: 448 / 0.5668 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.4075, allocations: 212.5 kB / 0.567 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.408, allocations: 77.67 kB / 0.567 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005777/0.4138, allocations: 4.407 MB / 0.5713 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.4141, allocations: 266.2 kB / 0.5716 GB, free: 5.805 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003457/0.4145, allocations: 119.2 kB / 0.5717 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.4147, allocations: 151.4 kB / 0.5718 GB, free: 5.539 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4147, allocations: 0 / 0.5718 GB, free: 5.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.4504, allocations: 8.442 MB / 0.5801 GB, free: 13.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.29, allocations: 14.33 kB / 0.5801 GB, free: 13.27 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.335535762016661]