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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1867/0.1867, allocations: 38.51 MB / 342.5 MB, free: 8.078 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 66.92 kB / 478.6 MB, free: 33.88 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09484, allocations: 61.24 MB / 0.5272 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006919/0.1018, allocations: 4.973 MB / 0.5321 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.1057, allocations: 2.5 MB / 0.5345 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000235/0.106, allocations: 15.94 kB / 0.5345 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.1072, allocations: 438.1 kB / 0.5349 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001502/0.1087, allocations: 0.5174 MB / 0.5354 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1098, allocations: 275.2 kB / 0.5357 GB, free: 8.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.1111, allocations: 0.7514 MB / 0.5364 GB, free: 7.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006784/0.1118, allocations: 265.7 kB / 0.5367 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006894/0.1125, allocations: 330.7 kB / 0.537 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007172/0.1132, allocations: 350.7 kB / 0.5373 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.169e-05/0.1133, allocations: 36 kB / 0.5374 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.115, allocations: 0.6508 MB / 0.538 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003213/0.1153, allocations: 207.3 kB / 0.5382 GB, free: 6.078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004191/0.1157, allocations: 242.9 kB / 0.5384 GB, free: 5.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.1173, allocations: 0.7668 MB / 0.5392 GB, free: 5.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1173, allocations: 4 kB / 0.5392 GB, free: 5.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1173, allocations: 0 / 0.5392 GB, free: 5.066 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1174, allocations: 0 / 0.5392 GB, free: 5.066 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.001737/0.1191, allocations: 0.783 MB / 0.54 GB, free: 4.234 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.1191, allocations: 15.89 kB / 0.54 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001801/0.1193, allocations: 82.72 kB / 0.5401 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003181/0.1225, allocations: 208.4 kB / 0.5403 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009404/0.1234, allocations: 382.5 kB / 0.5406 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/0.1235, allocations: 29.38 kB / 0.5406 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.1236, allocations: 48.34 kB / 0.5407 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1251, allocations: 0.6264 MB / 0.5413 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/0.1251, allocations: 0 / 0.5413 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/0.1251, allocations: 16 kB / 0.5413 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.335e-05/0.1252, allocations: 40.97 kB / 0.5414 GB, free: 2.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.1262, allocations: 0.605 MB / 0.542 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.1298, allocations: 2.246 MB / 0.5441 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006788/0.1305, allocations: 457.4 kB / 0.5446 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/0.1308, allocations: 216.7 kB / 0.5448 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.1309, allocations: 15.92 kB / 0.5448 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.1309, allocations: 38.56 kB / 0.5448 GB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.894e-06/0.1309, allocations: 0 / 0.5448 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.003629/0.1345, allocations: 1.698 MB / 0.5465 GB, free: 13.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.1346, allocations: 81.11 kB / 0.5466 GB, free: 13.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.135, allocations: 287 kB / 0.5468 GB, free: 12.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.135, allocations: 37.7 kB / 0.5469 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.1352, allocations: 228.6 kB / 0.5471 GB, free: 12.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.1354, allocations: 162.6 kB / 0.5473 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.1355, allocations: 86.25 kB / 0.5473 GB, free: 12.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1357, allocations: 346.7 kB / 0.5477 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.136, allocations: 185 kB / 0.5478 GB, free: 11.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/0.1364, allocations: 294.3 kB / 0.5481 GB, free: 11.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007558/0.1372, allocations: 0.508 MB / 0.5486 GB, free: 10.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1372, allocations: 0 / 0.5486 GB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001268/0.1384, allocations: 0.6694 MB / 0.5493 GB, free: 10.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1385, allocations: 11.98 kB / 0.5493 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.1385, allocations: 4 kB / 0.5493 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006286/0.1391, allocations: 180.9 kB / 0.5495 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.1395, allocations: 103.8 kB / 0.5496 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003934/0.1434, allocations: 2.78 MB / 0.5523 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.1437, allocations: 15.98 kB / 0.5523 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.1437, allocations: 23.98 kB / 0.5523 GB, free: 6.965 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.0002755/0.144, allocations: 193.7 kB / 0.5525 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.071e-05/0.1441, allocations: 43.69 kB / 0.5525 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.1453, allocations: 0.6259 MB / 0.5532 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1453, allocations: 4 kB / 0.5532 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1453, allocations: 3.938 kB / 0.5532 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.1453, allocations: 7.984 kB / 0.5532 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.1477, allocations: 1.336 MB / 0.5545 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.1478, allocations: 4 kB / 0.5545 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.1481, allocations: 84.06 kB / 0.5546 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004585/0.1486, allocations: 144.6 kB / 0.5547 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.1486, allocations: 15.98 kB / 0.5547 GB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003306/0.1519, allocations: 2.564 MB / 0.5572 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1519, allocations: 4 kB / 0.5572 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.1534, allocations: 0.9546 MB / 0.5582 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.1536, allocations: 108.9 kB / 0.5583 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.658e-05/0.1536, allocations: 19.97 kB / 0.5583 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.1538, allocations: 15.94 kB / 0.5583 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.1539, allocations: 31.95 kB / 0.5583 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.1539, allocations: 19.98 kB / 0.5583 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002153/0.1542, allocations: 194 kB / 0.5585 GB, free: 328 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1542, allocations: 0 / 0.5585 GB, free: 328 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006237/0.1548, allocations: 140 kB / 0.5587 GB, free: 188 kB / 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.001915/0.1567, allocations: 1.502 MB / 0.5601 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.158, allocations: 0.65 MB / 0.5608 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.158, allocations: 256 / 0.5608 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007418/0.1588, allocations: 402.3 kB / 0.5611 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.1593, allocations: 71.7 kB / 0.5612 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006483/0.1658, allocations: 4.462 MB / 0.5656 GB, free: 8.859 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.1663, allocations: 0.8707 MB / 0.5664 GB, free: 7.961 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002186/0.1666, allocations: 75.41 kB / 0.5665 GB, free: 7.887 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.1669, allocations: 147.4 kB / 0.5666 GB, free: 7.742 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1669, allocations: 3.938 kB / 0.5666 GB, free: 7.738 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.2068, allocations: 10.04 MB / 0.5764 GB, free: 13.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.33, allocations: 12.86 kB / 0.5765 GB, free: 13.82 MB / 446.1 MB " [Timeout remaining time 648] (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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.25331421988085]