Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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: 111.9 kB / 20.43 MB, free: 1.473 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.001723/0.001723, allocations: 212 kB / 23.74 MB, free: 4.688 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.1813/0.1813, allocations: 38.52 MB / 352.4 MB, free: 12.57 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.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.002237/0.002237, allocations: 67.91 kB / 492.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3391, allocations: 62.47 MB / 0.542 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006437/0.3456, allocations: 4.578 MB / 0.5465 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.3483, allocations: 1.493 MB / 0.5479 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.3486, allocations: 20.91 kB / 0.5479 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.3497, allocations: 390.2 kB / 0.5483 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.3503, allocations: 228.9 kB / 0.5485 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.3511, allocations: 245.5 kB / 0.5488 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007584/0.3518, allocations: 0.5384 MB / 0.5493 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004454/0.3523, allocations: 219.1 kB / 0.5495 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005343/0.3528, allocations: 258.3 kB / 0.5497 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005473/0.3533, allocations: 320.2 kB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.188e-05/0.3534, allocations: 31.34 kB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.3538, allocations: 166.4 kB / 0.5502 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.3541, allocations: 227.6 kB / 0.5505 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.3543, allocations: 232.5 kB / 0.5507 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.3551, allocations: 0.5793 MB / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3551, allocations: 0 / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3551, allocations: 0 / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3551, allocations: 1 kB / 0.5512 GB, free: 9.492 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001375/0.3565, allocations: 0.6727 MB / 0.5519 GB, free: 8.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3566, allocations: 14.17 kB / 0.5519 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.3567, allocations: 91.31 kB / 0.552 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006697/0.3573, allocations: 118 kB / 0.5521 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007432/0.3581, allocations: 341.4 kB / 0.5524 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.3581, allocations: 37.42 kB / 0.5525 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.3583, allocations: 46.12 kB / 0.5525 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.3593, allocations: 0.6263 MB / 0.5531 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.3593, allocations: 2.25 kB / 0.5531 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.826e-05/0.3593, allocations: 16.56 kB / 0.5532 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/0.3595, allocations: 33.48 kB / 0.5532 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008304/0.3603, allocations: 479.6 kB / 0.5536 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003759/0.3641, allocations: 2.831 MB / 0.5564 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.3645, allocations: 213.9 kB / 0.5566 GB, free: 5.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.3647, allocations: 140.7 kB / 0.5567 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.3648, allocations: 7.25 kB / 0.5568 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.3648, allocations: 32.78 kB / 0.5568 GB, free: 5.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.774e-06/0.3648, allocations: 0 / 0.5568 GB, free: 5.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001702/0.3665, allocations: 0.9012 MB / 0.5577 GB, free: 4.137 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.3666, allocations: 89.05 kB / 0.5577 GB, free: 4.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.3669, allocations: 328.4 kB / 0.5581 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.3669, allocations: 33.7 kB / 0.5581 GB, free: 3.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.3671, allocations: 284 kB / 0.5584 GB, free: 3.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.787e-05/0.3672, allocations: 107.1 kB / 0.5585 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.3674, allocations: 86.16 kB / 0.5585 GB, free: 3.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.3676, allocations: 350.7 kB / 0.5589 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.3679, allocations: 148.9 kB / 0.559 GB, free: 2.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.3683, allocations: 346.6 kB / 0.5594 GB, free: 2.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006868/0.369, allocations: 0.5091 MB / 0.5599 GB, free: 1.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.369, allocations: 4 kB / 0.5599 GB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008963/0.3699, allocations: 0.5282 MB / 0.5604 GB, free: 1.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3699, allocations: 8 kB / 0.5604 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3699, allocations: 8.844 kB / 0.5604 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.37, allocations: 11.98 kB / 0.5604 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/0.3704, allocations: 123.8 kB / 0.5605 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.3704, allocations: 11.94 kB / 0.5605 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.3707, allocations: 27.97 kB / 0.5606 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.3707, allocations: 24 kB / 0.5606 GB, free: 0.9102 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * 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.00026/0.371, allocations: 213.5 kB / 0.5608 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.371, allocations: 35.8 kB / 0.5608 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006449/0.3717, allocations: 366.1 kB / 0.5612 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3717, allocations: 8 kB / 0.5612 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3717, allocations: 3.938 kB / 0.5612 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3717, allocations: 0 / 0.5612 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.3733, allocations: 0.8553 MB / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3733, allocations: 0 / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.3736, allocations: 67.95 kB / 0.5621 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.3736, allocations: 8.094 kB / 0.5621 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3736, allocations: 11.94 kB / 0.5621 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3737, allocations: 11.88 kB / 0.5621 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3737, allocations: 0 / 0.5621 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/0.3745, allocations: 0.5859 MB / 0.5627 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.378e-05/0.3746, allocations: 23.81 kB / 0.5627 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.3746, allocations: 15.97 kB / 0.5627 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.3748, allocations: 8 kB / 0.5627 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.3748, allocations: 27.89 kB / 0.5628 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.3749, allocations: 8 kB / 0.5628 GB, free: 14.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.3751, allocations: 223 kB / 0.563 GB, free: 14.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3751, allocations: 0 / 0.563 GB, free: 14.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004787/0.3756, allocations: 92 kB / 0.5631 GB, free: 14.26 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 (31): * Single equations (assignments): 30 * 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.001161/0.3768, allocations: 1.142 MB / 0.5642 GB, free: 13.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005779/0.3773, allocations: 349 kB / 0.5645 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3773, allocations: 0 / 0.5645 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.3776, allocations: 133.1 kB / 0.5646 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.3781, allocations: 68.14 kB / 0.5647 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005167/0.3832, allocations: 4.001 MB / 0.5686 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.3838, allocations: 0.8581 MB / 0.5694 GB, free: 7.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003215/0.3841, allocations: 131.1 kB / 0.5696 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.3843, allocations: 139.4 kB / 0.5697 GB, free: 7.109 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3843, allocations: 0 / 0.5697 GB, free: 7.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.4223, allocations: 7.598 MB / 0.5771 GB, free: 15.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.6, allocations: 14.97 kB / 0.5771 GB, free: 15.64 MB / 430.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.437137567205355]