Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001329/0.001329, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001461/0.001461, allocations: 214.4 kB / 23.73 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.1868/0.1868, allocations: 38.55 MB / 352.5 MB, free: 12.29 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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.002129/0.002129, allocations: 75.89 kB / 492.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3841, allocations: 62.46 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007555/0.3917, allocations: 4.751 MB / 0.5466 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004582/0.3962, allocations: 2.349 MB / 0.5489 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004883/0.3967, allocations: 12.78 kB / 0.5489 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.3982, allocations: 429 kB / 0.5493 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.4001, allocations: 0.5127 MB / 0.5498 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009986/0.4011, allocations: 289.5 kB / 0.5501 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.4024, allocations: 0.7255 MB / 0.5508 GB, free: 9.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006114/0.403, allocations: 290 kB / 0.5511 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006816/0.4037, allocations: 336.7 kB / 0.5514 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006196/0.4043, allocations: 330.6 kB / 0.5517 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.622e-05/0.4044, allocations: 36.94 kB / 0.5517 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.4056, allocations: 0.5306 MB / 0.5522 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.4058, allocations: 205.3 kB / 0.5524 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.4061, allocations: 206.1 kB / 0.5526 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.4074, allocations: 0.7656 MB / 0.5534 GB, free: 7.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.4074, allocations: 3.938 kB / 0.5534 GB, free: 7.836 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.4074, allocations: 1.281 kB / 0.5534 GB, free: 7.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.4074, allocations: 0 / 0.5534 GB, free: 7.836 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001376/0.4088, allocations: 0.7136 MB / 0.5541 GB, free: 7.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.4088, allocations: 13.52 kB / 0.5541 GB, free: 7.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.4089, allocations: 82.55 kB / 0.5542 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.4106, allocations: 211.2 kB / 0.5544 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/0.4112, allocations: 306.1 kB / 0.5547 GB, free: 6.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.4112, allocations: 34.45 kB / 0.5547 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.365e-05/0.4113, allocations: 43.56 kB / 0.5547 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4124, allocations: 0.624 MB / 0.5554 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.4124, allocations: 11.89 kB / 0.5554 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.4125, allocations: 19.98 kB / 0.5554 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.187e-05/0.4126, allocations: 32.98 kB / 0.5554 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.4137, allocations: 0.6011 MB / 0.556 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/0.4174, allocations: 2.083 MB / 0.558 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000649/0.418, allocations: 377.4 kB / 0.5584 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003263/0.4184, allocations: 213.2 kB / 0.5586 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.175e-05/0.4184, allocations: 8 kB / 0.5586 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.4184, allocations: 42.5 kB / 0.5587 GB, free: 2.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.4184, allocations: 0 / 0.5587 GB, free: 2.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003698/0.4221, allocations: 1.554 MB / 0.5602 GB, free: 1.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.4222, allocations: 85.11 kB / 0.5603 GB, free: 1.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.4225, allocations: 284.1 kB / 0.5605 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.4226, allocations: 33.83 kB / 0.5606 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.4228, allocations: 236.5 kB / 0.5608 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.4229, allocations: 154.6 kB / 0.5609 GB, free: 476 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.4231, allocations: 86.19 kB / 0.561 GB, free: 384 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.4233, allocations: 354.7 kB / 0.5613 GB, free: 20 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003252/0.4236, allocations: 180.8 kB / 0.5615 GB, free: 15.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.424, allocations: 289.7 kB / 0.5618 GB, free: 15.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007864/0.4248, allocations: 0.5043 MB / 0.5623 GB, free: 14.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4248, allocations: 0 / 0.5623 GB, free: 14.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001361/0.4262, allocations: 0.6693 MB / 0.5629 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/0.4262, allocations: 11.98 kB / 0.563 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.4262, allocations: 8.375 kB / 0.563 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006343/0.4268, allocations: 164.7 kB / 0.5631 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.4272, allocations: 95.88 kB / 0.5632 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004031/0.4313, allocations: 2.664 MB / 0.5658 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000328/0.4316, allocations: 23.98 kB / 0.5658 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.4316, allocations: 20 kB / 0.5659 GB, free: 11.19 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002812/0.4319, allocations: 197.7 kB / 0.566 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-05/0.432, allocations: 43.7 kB / 0.5661 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.4332, allocations: 0.6256 MB / 0.5667 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4333, allocations: 8 kB / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.4333, allocations: 7.922 kB / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4333, allocations: 0 / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.4357, allocations: 1.215 MB / 0.5679 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4357, allocations: 4.062 kB / 0.5679 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.4361, allocations: 79.89 kB / 0.568 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005255/0.4366, allocations: 144.7 kB / 0.5681 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/0.4366, allocations: 8 kB / 0.5681 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.4399, allocations: 2.445 MB / 0.5705 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4399, allocations: 4 kB / 0.5705 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.4415, allocations: 0.9499 MB / 0.5714 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4416, allocations: 39.8 kB / 0.5715 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.4417, allocations: 11.94 kB / 0.5715 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.4419, allocations: 19.98 kB / 0.5715 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.442, allocations: 31.94 kB / 0.5715 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.442, allocations: 16.11 kB / 0.5716 GB, free: 5.117 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.4422, allocations: 207 kB / 0.5718 GB, free: 4.914 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4422, allocations: 0 / 0.5718 GB, free: 4.914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006801/0.4429, allocations: 135.9 kB / 0.5719 GB, free: 4.781 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001984/0.4449, allocations: 1.494 MB / 0.5733 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.4464, allocations: 0.6495 MB / 0.574 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4464, allocations: 0.875 kB / 0.574 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007474/0.4471, allocations: 407.4 kB / 0.5744 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.4477, allocations: 80.55 kB / 0.5744 GB, free: 2.102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006862/0.4545, allocations: 4.458 MB / 0.5788 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.4549, allocations: 270.6 kB / 0.5791 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002361/0.4551, allocations: 75.22 kB / 0.5791 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.4553, allocations: 151.3 kB / 0.5793 GB, free: 12.95 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4553, allocations: 8 kB / 0.5793 GB, free: 12.94 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04894/0.5043, allocations: 10.4 MB / 0.5894 GB, free: 2.703 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.45, allocations: 7.547 kB / 0.5894 GB, free: 2.699 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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: 16.43160524079576]