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.001685/0.001685, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.00218/0.00218, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.527/1.527, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.226/0.226, allocations: 38.53 MB / 353.2 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.002048/0.002048, allocations: 63.89 kB / 493.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3255, allocations: 62.47 MB / 0.5428 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006528/0.332, allocations: 5.078 MB / 0.5477 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00381/0.3358, allocations: 2.55 MB / 0.5502 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.3361, allocations: 17.22 kB / 0.5502 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.3374, allocations: 460.1 kB / 0.5507 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.3386, allocations: 0.5079 MB / 0.5512 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007076/0.3393, allocations: 284.6 kB / 0.5514 GB, free: 9.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009282/0.3402, allocations: 0.7339 MB / 0.5522 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.3407, allocations: 298.6 kB / 0.5524 GB, free: 8.797 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005769/0.3413, allocations: 332.3 kB / 0.5528 GB, free: 8.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.3418, allocations: 351 kB / 0.5531 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.3419, allocations: 36.81 kB / 0.5531 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.343, allocations: 0.6552 MB / 0.5538 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.3432, allocations: 197.4 kB / 0.554 GB, free: 7.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.3435, allocations: 249.5 kB / 0.5542 GB, free: 7.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.3446, allocations: 0.7675 MB / 0.5549 GB, free: 7.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3446, allocations: 0 / 0.5549 GB, free: 7.277 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3446, allocations: 0 / 0.5549 GB, free: 7.277 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3446, allocations: 1.094 kB / 0.5549 GB, free: 7.277 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.001153/0.3457, allocations: 0.712 MB / 0.5556 GB, free: 6.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3458, allocations: 16.62 kB / 0.5557 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.195e-05/0.3458, allocations: 12.09 kB / 0.5557 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.588e-05/0.3459, allocations: 91.03 kB / 0.5558 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001653/0.3476, allocations: 210.8 kB / 0.556 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/0.3481, allocations: 301.8 kB / 0.5562 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.3481, allocations: 30.28 kB / 0.5563 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-05/0.3482, allocations: 43.95 kB / 0.5563 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.3493, allocations: 0.6281 MB / 0.5569 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.3493, allocations: 10.11 kB / 0.5569 GB, free: 5.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.3493, allocations: 15.41 kB / 0.557 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.062e-05/0.3494, allocations: 35.7 kB / 0.557 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.3504, allocations: 0.6129 MB / 0.5576 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003573/0.354, allocations: 2.188 MB / 0.5597 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006448/0.3546, allocations: 365.5 kB / 0.5601 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003304/0.355, allocations: 213.7 kB / 0.5603 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.355, allocations: 8 kB / 0.5603 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.355, allocations: 38.56 kB / 0.5603 GB, free: 2.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.214e-06/0.355, allocations: 0 / 0.5603 GB, free: 2.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003614/0.3587, allocations: 1.567 MB / 0.5619 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.3587, allocations: 89.23 kB / 0.5619 GB, free: 0.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003595/0.3591, allocations: 280.2 kB / 0.5622 GB, free: 268 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.3591, allocations: 29.7 kB / 0.5622 GB, free: 232 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.3593, allocations: 228.6 kB / 0.5624 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.3594, allocations: 162.5 kB / 0.5626 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.3596, allocations: 90.14 kB / 0.5627 GB, free: 15.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3598, allocations: 350.7 kB / 0.563 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.36, allocations: 172.9 kB / 0.5632 GB, free: 15.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.3604, allocations: 296.6 kB / 0.5635 GB, free: 14.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/0.3611, allocations: 0.5043 MB / 0.564 GB, free: 14.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3611, allocations: 0 / 0.564 GB, free: 14.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001243/0.3624, allocations: 0.6732 MB / 0.5646 GB, free: 13.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3624, allocations: 8 kB / 0.5646 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3624, allocations: 4.438 kB / 0.5646 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006338/0.363, allocations: 172.7 kB / 0.5648 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003772/0.3634, allocations: 99.81 kB / 0.5649 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003776/0.3672, allocations: 2.682 MB / 0.5675 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.3676, allocations: 19.98 kB / 0.5675 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.3676, allocations: 23.98 kB / 0.5676 GB, free: 10.54 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.0002934/0.3679, allocations: 197.7 kB / 0.5677 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.293e-05/0.368, allocations: 39.7 kB / 0.5678 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.3693, allocations: 0.6256 MB / 0.5684 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.3693, allocations: 4 kB / 0.5684 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3693, allocations: 7.938 kB / 0.5684 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.3693, allocations: 7.984 kB / 0.5684 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.3717, allocations: 1.316 MB / 0.5697 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3717, allocations: 3.938 kB / 0.5697 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.3721, allocations: 75.89 kB / 0.5698 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004822/0.3726, allocations: 140.7 kB / 0.5699 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.3726, allocations: 11.98 kB / 0.5699 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003335/0.3759, allocations: 2.469 MB / 0.5723 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3759, allocations: 0 / 0.5723 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.3776, allocations: 0.9499 MB / 0.5733 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3777, allocations: 43.8 kB / 0.5733 GB, free: 4.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3777, allocations: 7.938 kB / 0.5733 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.378, allocations: 19.98 kB / 0.5733 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-05/0.378, allocations: 35.92 kB / 0.5734 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.3781, allocations: 16 kB / 0.5734 GB, free: 4.336 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.3783, allocations: 203.1 kB / 0.5736 GB, free: 4.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3783, allocations: 0 / 0.5736 GB, free: 4.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006717/0.379, allocations: 132 kB / 0.5737 GB, free: 4.008 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.001867/0.3808, allocations: 1.502 MB / 0.5752 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.3822, allocations: 0.6466 MB / 0.5758 GB, free: 1.805 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3822, allocations: 4 kB / 0.5758 GB, free: 1.801 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007041/0.3829, allocations: 403.1 kB / 0.5762 GB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.3834, allocations: 68.59 kB / 0.5762 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006487/0.3899, allocations: 4.477 MB / 0.5806 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005744/0.3905, allocations: 0.8708 MB / 0.5815 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.3907, allocations: 67.23 kB / 0.5815 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.3909, allocations: 151.4 kB / 0.5817 GB, free: 11.55 MB / 430.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3909, allocations: 0 / 0.5817 GB, free: 11.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03717/0.4281, allocations: 10.48 MB / 0.5919 GB, free: 1.219 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.76, allocations: 14.48 kB / 0.5919 GB, free: 1.211 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.998361538979225]