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.00167/0.00167, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002141/0.002141, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.492/1.492, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2309/0.2309, allocations: 38.53 MB / 353.2 MB, free: 12.56 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.002172/0.002172, allocations: 63.91 kB / 493.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3319, allocations: 62.47 MB / 0.5428 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006802/0.3387, allocations: 4.575 MB / 0.5472 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.3416, allocations: 1.497 MB / 0.5487 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000267/0.3418, allocations: 16.53 kB / 0.5487 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.343, allocations: 390.7 kB / 0.5491 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006233/0.3436, allocations: 224.8 kB / 0.5493 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.3445, allocations: 254.1 kB / 0.5495 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007706/0.3452, allocations: 0.5298 MB / 0.55 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.3456, allocations: 223.6 kB / 0.5503 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.3461, allocations: 261.6 kB / 0.5505 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005134/0.3466, allocations: 317.3 kB / 0.5508 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.092e-05/0.3467, allocations: 30.53 kB / 0.5508 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/0.347, allocations: 157.8 kB / 0.551 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002345/0.3472, allocations: 229 kB / 0.5512 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.3475, allocations: 231.8 kB / 0.5514 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007369/0.3482, allocations: 0.5784 MB / 0.552 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3482, allocations: 5.5 kB / 0.552 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3482, allocations: 0 / 0.552 GB, free: 9.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.3482, allocations: 0 / 0.552 GB, free: 9.504 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.001322/0.3496, allocations: 0.6797 MB / 0.5527 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3496, allocations: 13.83 kB / 0.5527 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.61e-05/0.3496, allocations: 14.31 kB / 0.5527 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.3497, allocations: 84.09 kB / 0.5528 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007545/0.3505, allocations: 119 kB / 0.5529 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007671/0.3512, allocations: 352.9 kB / 0.5532 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.3513, allocations: 33.53 kB / 0.5533 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.3514, allocations: 48.67 kB / 0.5533 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009768/0.3524, allocations: 0.6275 MB / 0.5539 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.3524, allocations: 1.094 kB / 0.5539 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.3525, allocations: 16.94 kB / 0.5539 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.3526, allocations: 29.05 kB / 0.554 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007872/0.3534, allocations: 484.2 kB / 0.5544 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003739/0.3571, allocations: 2.816 MB / 0.5572 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.3575, allocations: 216.6 kB / 0.5574 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.3577, allocations: 136.9 kB / 0.5575 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.3578, allocations: 12.14 kB / 0.5575 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.3578, allocations: 36.66 kB / 0.5576 GB, free: 5.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.994e-06/0.3578, allocations: 0 / 0.5576 GB, free: 5.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.00183/0.3597, allocations: 0.9078 MB / 0.5584 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.3597, allocations: 85.23 kB / 0.5585 GB, free: 4.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.3601, allocations: 332.4 kB / 0.5588 GB, free: 3.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.3601, allocations: 29.7 kB / 0.5589 GB, free: 3.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.3604, allocations: 276 kB / 0.5591 GB, free: 3.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3605, allocations: 111.1 kB / 0.5592 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.3606, allocations: 94.14 kB / 0.5593 GB, free: 3.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3608, allocations: 346.8 kB / 0.5597 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.3611, allocations: 144.9 kB / 0.5598 GB, free: 2.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.3617, allocations: 347.1 kB / 0.5601 GB, free: 2.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007921/0.3624, allocations: 0.513 MB / 0.5606 GB, free: 1.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3625, allocations: 4 kB / 0.5606 GB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008827/0.3633, allocations: 0.5323 MB / 0.5612 GB, free: 1.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3634, allocations: 10.81 kB / 0.5612 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3634, allocations: 11.98 kB / 0.5612 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.3634, allocations: 11.94 kB / 0.5612 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.3639, allocations: 120.5 kB / 0.5613 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.3639, allocations: 15.98 kB / 0.5613 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.3642, allocations: 19.98 kB / 0.5613 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.3642, allocations: 24 kB / 0.5614 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.0002745/0.3645, allocations: 221.5 kB / 0.5616 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.483e-05/0.3646, allocations: 39.7 kB / 0.5616 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006839/0.3652, allocations: 365.7 kB / 0.562 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3652, allocations: 4 kB / 0.562 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3653, allocations: 0 / 0.562 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3653, allocations: 4 kB / 0.562 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.3669, allocations: 0.8592 MB / 0.5628 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3669, allocations: 0 / 0.5628 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.3672, allocations: 63.91 kB / 0.5629 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3672, allocations: 0 / 0.5629 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.3673, allocations: 12.03 kB / 0.5629 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.3673, allocations: 12 kB / 0.5629 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3673, allocations: 3.984 kB / 0.5629 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.3682, allocations: 0.582 MB / 0.5635 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.581e-05/0.3683, allocations: 35.84 kB / 0.5635 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.5e-05/0.3683, allocations: 11.94 kB / 0.5635 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.3685, allocations: 12 kB / 0.5635 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.3686, allocations: 15.95 kB / 0.5635 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.3686, allocations: 12 kB / 0.5635 GB, free: 14.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.3688, allocations: 223 kB / 0.5638 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3688, allocations: 0 / 0.5638 GB, free: 14.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005061/0.3693, allocations: 92 kB / 0.5638 GB, free: 14.25 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.001244/0.3706, allocations: 1.142 MB / 0.565 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006921/0.3713, allocations: 343.6 kB / 0.5653 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3713, allocations: 1.812 kB / 0.5653 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.3715, allocations: 132.8 kB / 0.5654 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.0005435/0.3721, allocations: 69.3 kB / 0.5655 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005761/0.3778, allocations: 3.997 MB / 0.5694 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.3784, allocations: 0.8698 MB / 0.5702 GB, free: 7.359 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003593/0.3788, allocations: 135.1 kB / 0.5704 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.379, allocations: 135.4 kB / 0.5705 GB, free: 7.098 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.379, allocations: 0 / 0.5705 GB, free: 7.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03542/0.4144, allocations: 7.632 MB / 0.5779 GB, free: 15.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.04, allocations: 6.812 kB / 0.5779 GB, free: 15.62 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: 15.117181810957845]