Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.001369/0.001369, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.001486/0.001486, allocations: 196.5 kB / 23.72 MB, free: 4.492 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.727 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.1903/0.1903, allocations: 38.55 MB / 352.5 MB, free: 12.31 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.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.00237/0.00237, allocations: 67.91 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.346, allocations: 62.46 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005533/0.3516, allocations: 3.453 MB / 0.5453 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3539, allocations: 1.42 MB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.3541, allocations: 10.25 kB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008892/0.355, allocations: 255.1 kB / 0.5469 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007277/0.3558, allocations: 278.6 kB / 0.5472 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.3561, allocations: 127.2 kB / 0.5473 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005501/0.3567, allocations: 342.7 kB / 0.5477 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.357, allocations: 118.8 kB / 0.5478 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004607/0.3575, allocations: 168 kB / 0.5479 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003655/0.3579, allocations: 154.7 kB / 0.5481 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.707e-05/0.3579, allocations: 17.72 kB / 0.5481 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006222/0.3585, allocations: 284.5 kB / 0.5484 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.3587, allocations: 93.58 kB / 0.5485 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.3589, allocations: 85.94 kB / 0.5485 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006695/0.3595, allocations: 365.9 kB / 0.5489 GB, free: 11.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3595, allocations: 0 / 0.5489 GB, free: 11.06 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3595, allocations: 0 / 0.5489 GB, free: 11.06 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3595, allocations: 1.562 kB / 0.5489 GB, free: 11.06 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000862/0.3604, allocations: 455.2 kB / 0.5493 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3604, allocations: 14.27 kB / 0.5493 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.3605, allocations: 66.42 kB / 0.5494 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009802/0.3615, allocations: 96.52 kB / 0.5495 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.3619, allocations: 208.3 kB / 0.5497 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.362, allocations: 12.34 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.362, allocations: 27.2 kB / 0.5497 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.3626, allocations: 323.2 kB / 0.55 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3626, allocations: 5.156 kB / 0.55 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.3626, allocations: 6.125 kB / 0.5501 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.776e-05/0.3626, allocations: 21.45 kB / 0.5501 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/0.3631, allocations: 283.6 kB / 0.5503 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.3651, allocations: 1.191 MB / 0.5515 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.3656, allocations: 222.7 kB / 0.5517 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.3657, allocations: 95.86 kB / 0.5518 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3658, allocations: 2.125 kB / 0.5518 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.3658, allocations: 36.75 kB / 0.5518 GB, free: 8.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.824e-06/0.3658, allocations: 0 / 0.5518 GB, free: 8.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009306/0.3667, allocations: 446.9 kB / 0.5523 GB, free: 8.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.3668, allocations: 83.91 kB / 0.5524 GB, free: 8.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.3671, allocations: 198.4 kB / 0.5525 GB, free: 8.219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.3671, allocations: 30.83 kB / 0.5526 GB, free: 8.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.3672, allocations: 159.9 kB / 0.5527 GB, free: 8.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.3673, allocations: 63.27 kB / 0.5528 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-05/0.3674, allocations: 51.62 kB / 0.5528 GB, free: 7.941 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3676, allocations: 336.3 kB / 0.5532 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.3677, allocations: 83.77 kB / 0.5532 GB, free: 7.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3679, allocations: 164.1 kB / 0.5534 GB, free: 7.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/0.3683, allocations: 263.4 kB / 0.5536 GB, free: 7.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3683, allocations: 1.031 kB / 0.5536 GB, free: 7.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004754/0.3688, allocations: 290.2 kB / 0.5539 GB, free: 7.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3688, allocations: 6.625 kB / 0.5539 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.3688, allocations: 6.312 kB / 0.5539 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3689, allocations: 7.875 kB / 0.5539 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.3691, allocations: 56.52 kB / 0.554 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3691, allocations: 7.281 kB / 0.554 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.3693, allocations: 14.86 kB / 0.554 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.3693, allocations: 12.47 kB / 0.554 GB, free: 7.055 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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.0001763/0.3695, allocations: 152.6 kB / 0.5542 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.3695, allocations: 24.12 kB / 0.5542 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004233/0.37, allocations: 234.8 kB / 0.5544 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.37, allocations: 2.125 kB / 0.5544 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.37, allocations: 4 kB / 0.5544 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.37, allocations: 5.078 kB / 0.5544 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.3718, allocations: 0.8952 MB / 0.5553 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.3718, allocations: 12.39 kB / 0.5553 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.372, allocations: 39.02 kB / 0.5554 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.372, allocations: 4.312 kB / 0.5554 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.372, allocations: 10.47 kB / 0.5554 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/0.372, allocations: 5.188 kB / 0.5554 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.671e-05/0.3721, allocations: 12.2 kB / 0.5554 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.3729, allocations: 419.5 kB / 0.5558 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.945e-05/0.373, allocations: 19.86 kB / 0.5558 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.914e-05/0.3731, allocations: 23.92 kB / 0.5558 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.3734, allocations: 4 kB / 0.5558 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.3735, allocations: 31.84 kB / 0.5559 GB, free: 5.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.3735, allocations: 8 kB / 0.5559 GB, free: 5.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002302/0.3737, allocations: 151 kB / 0.556 GB, free: 5.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3737, allocations: 0 / 0.556 GB, free: 5.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007053/0.3744, allocations: 59.94 kB / 0.5561 GB, free: 5.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * 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.00119/0.3756, allocations: 0.9365 MB / 0.557 GB, free: 4.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005659/0.3762, allocations: 219.5 kB / 0.5572 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3762, allocations: 0 / 0.5572 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.3764, allocations: 93.14 kB / 0.5573 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.3771, allocations: 46.66 kB / 0.5573 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004751/0.3819, allocations: 2.691 MB / 0.56 GB, free: 1.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.3821, allocations: 148.2 kB / 0.5601 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.3823, allocations: 53.59 kB / 0.5601 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.3824, allocations: 63.42 kB / 0.5602 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3824, allocations: 0 / 0.5602 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.4143, allocations: 4.741 MB / 0.5648 GB, free: 12.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.55, allocations: 7.234 kB / 0.5648 GB, free: 12.1 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.48599144211039]