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.001791/0.001791, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.001454/0.001454, allocations: 215 kB / 21.45 MB, free: 1.641 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.52/1.52, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.1886/0.1886, allocations: 38.51 MB / 349.4 MB, free: 2.645 MB / 270.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.002006/0.002006, allocations: 72.94 kB / 487.8 MB, free: 32.33 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1184, allocations: 62.42 MB / 0.5374 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006998/0.1254, allocations: 4.987 MB / 0.5422 GB, free: 4.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004087/0.1295, allocations: 2.539 MB / 0.5447 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.1299, allocations: 19.88 kB / 0.5447 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.1312, allocations: 430.2 kB / 0.5451 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.1326, allocations: 0.5252 MB / 0.5456 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008109/0.1334, allocations: 279.2 kB / 0.5459 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1344, allocations: 0.736 MB / 0.5466 GB, free: 44 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000504/0.1349, allocations: 277.7 kB / 0.5469 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.1355, allocations: 334.7 kB / 0.5472 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005558/0.1361, allocations: 358.7 kB / 0.5476 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.742e-05/0.1361, allocations: 36 kB / 0.5476 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.1373, allocations: 0.6469 MB / 0.5482 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.1375, allocations: 207.3 kB / 0.5484 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002683/0.1378, allocations: 246.8 kB / 0.5487 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.1389, allocations: 0.7629 MB / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1389, allocations: 0 / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1389, allocations: 0 / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1389, allocations: 0 / 0.5494 GB, free: 13.2 MB / 414.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.001298/0.1402, allocations: 0.7791 MB / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1403, allocations: 16.03 kB / 0.5502 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.436e-05/0.1403, allocations: 9.188 kB / 0.5502 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.1404, allocations: 90.69 kB / 0.5503 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.1422, allocations: 204.4 kB / 0.5505 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.1428, allocations: 378.5 kB / 0.5508 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.1428, allocations: 29.38 kB / 0.5509 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.25e-05/0.1429, allocations: 44.36 kB / 0.5509 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.144, allocations: 0.6301 MB / 0.5515 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.144, allocations: 3.953 kB / 0.5515 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.344e-05/0.144, allocations: 20 kB / 0.5515 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.583e-05/0.1441, allocations: 32.98 kB / 0.5516 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.1452, allocations: 0.605 MB / 0.5522 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003666/0.1488, allocations: 2.257 MB / 0.5544 GB, free: 7.871 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/0.1496, allocations: 457.5 kB / 0.5548 GB, free: 7.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003326/0.1499, allocations: 205.7 kB / 0.555 GB, free: 7.184 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.1499, allocations: 12 kB / 0.555 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.15, allocations: 34.56 kB / 0.555 GB, free: 7.129 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.635e-06/0.15, allocations: 0 / 0.555 GB, free: 7.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.004014/0.154, allocations: 1.71 MB / 0.5567 GB, free: 5.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.1541, allocations: 85.23 kB / 0.5568 GB, free: 5.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.1544, allocations: 279 kB / 0.5571 GB, free: 4.961 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.1545, allocations: 37.7 kB / 0.5571 GB, free: 4.918 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.1547, allocations: 232.5 kB / 0.5573 GB, free: 4.688 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.1548, allocations: 162.6 kB / 0.5575 GB, free: 4.527 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.155, allocations: 94.14 kB / 0.5576 GB, free: 4.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.1552, allocations: 346.7 kB / 0.5579 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.1555, allocations: 177 kB / 0.5581 GB, free: 3.906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.1559, allocations: 290.4 kB / 0.5583 GB, free: 3.578 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.1567, allocations: 0.5044 MB / 0.5588 GB, free: 3.027 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1567, allocations: 3.938 kB / 0.5588 GB, free: 3.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001278/0.1579, allocations: 0.677 MB / 0.5595 GB, free: 2.336 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.158, allocations: 8 kB / 0.5595 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.158, allocations: 7.938 kB / 0.5595 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006581/0.1586, allocations: 177.1 kB / 0.5597 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.159, allocations: 99.81 kB / 0.5598 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/0.163, allocations: 2.784 MB / 0.5625 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.1633, allocations: 15.98 kB / 0.5625 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.1634, allocations: 20 kB / 0.5625 GB, free: 15.09 MB / 430.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.0003101/0.1637, allocations: 205.7 kB / 0.5627 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.469e-05/0.1638, allocations: 43.64 kB / 0.5628 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.1651, allocations: 0.6259 MB / 0.5634 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.1651, allocations: 4.094 kB / 0.5634 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1651, allocations: 7.922 kB / 0.5634 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.1651, allocations: 8 kB / 0.5634 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/0.1674, allocations: 1.34 MB / 0.5647 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1674, allocations: 4 kB / 0.5647 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.1678, allocations: 79.89 kB / 0.5648 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004851/0.1683, allocations: 140.7 kB / 0.5649 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.1683, allocations: 12 kB / 0.5649 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003318/0.1716, allocations: 2.561 MB / 0.5674 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1717, allocations: 4 kB / 0.5674 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.1732, allocations: 0.9616 MB / 0.5684 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.1733, allocations: 112.9 kB / 0.5685 GB, free: 8.699 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.1734, allocations: 15.94 kB / 0.5685 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1736, allocations: 12.03 kB / 0.5685 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.1737, allocations: 31.95 kB / 0.5685 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.1737, allocations: 16 kB / 0.5686 GB, free: 8.625 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002234/0.1739, allocations: 197.9 kB / 0.5687 GB, free: 8.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1739, allocations: 0 / 0.5687 GB, free: 8.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006391/0.1746, allocations: 140 kB / 0.5689 GB, free: 8.293 MB / 430.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.001877/0.1764, allocations: 1.502 MB / 0.5703 GB, free: 6.754 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.1778, allocations: 0.6501 MB / 0.571 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1778, allocations: 0 / 0.571 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007341/0.1786, allocations: 398.3 kB / 0.5714 GB, free: 5.688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.1791, allocations: 71.62 kB / 0.5714 GB, free: 5.621 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006395/0.1855, allocations: 4.467 MB / 0.5758 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.186, allocations: 0.8707 MB / 0.5766 GB, free: 72 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.1862, allocations: 71.23 kB / 0.5767 GB, free: 0 / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.1864, allocations: 143.5 kB / 0.5768 GB, free: 15.86 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1865, allocations: 4 kB / 0.5768 GB, free: 15.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05177/0.2382, allocations: 10.08 MB / 0.5867 GB, free: 5.926 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13, allocations: 11.42 kB / 0.5867 GB, free: 5.922 MB / 446.1 MB " [Timeout remaining time 647] (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.11990677600261]