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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 114.7 kB / 16.51 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 198.4 kB / 17.43 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1623/0.1623, allocations: 38.03 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 62.02 kB / 398.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 58.06 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006059/0.1095, allocations: 5.344 MB / 461.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.1132, allocations: 2.629 MB / 464.2 MB, free: 436 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000341/0.1135, allocations: 19.88 kB / 464.2 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.1147, allocations: 410.6 kB / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001245/0.116, allocations: 494.3 kB / 465.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000721/0.1167, allocations: 251.4 kB / 465.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.1178, allocations: 1.13 MB / 466.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005654/0.1184, allocations: 316.2 kB / 466.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.1188, allocations: 266.8 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003814/0.1192, allocations: 350.7 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.1193, allocations: 24 kB / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.1205, allocations: 0.7794 MB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.1207, allocations: 187.5 kB / 468.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.1209, allocations: 238.8 kB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009238/0.1218, allocations: 0.7866 MB / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1218, allocations: 0 / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1219, allocations: 0 / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1219, allocations: 0 / 469.4 MB, free: 11.21 MB / 350.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.001112/0.123, allocations: 0.78 MB / 470.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.123, allocations: 12.03 kB / 470.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.1231, allocations: 82.72 kB / 470.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.1248, allocations: 204 kB / 470.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.1253, allocations: 354.4 kB / 470.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.1253, allocations: 37.34 kB / 470.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/0.1254, allocations: 48.3 kB / 470.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009344/0.1264, allocations: 0.6303 MB / 471.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.1264, allocations: 3.906 kB / 471.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.1265, allocations: 19.98 kB / 471.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.1265, allocations: 32.98 kB / 471.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000925/0.1275, allocations: 0.605 MB / 472.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.1308, allocations: 2.253 MB / 474.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.1315, allocations: 483.7 kB / 474.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.1318, allocations: 240.5 kB / 475.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.1318, allocations: 15.92 kB / 475.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1319, allocations: 38.55 kB / 475.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.294e-06/0.1319, allocations: 0 / 475.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003443/0.1353, allocations: 1.704 MB / 476.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.1354, allocations: 81.11 kB / 477 MB, free: 3.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.1357, allocations: 282.9 kB / 477.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.1357, allocations: 37.7 kB / 477.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1359, allocations: 224.1 kB / 477.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.136, allocations: 153.8 kB / 477.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1361, allocations: 90.28 kB / 477.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1363, allocations: 346.7 kB / 478.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.1366, allocations: 181 kB / 478.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.1369, allocations: 290.3 kB / 478.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006497/0.1376, allocations: 0.4966 MB / 479.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1376, allocations: 8 kB / 479.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00113/0.1387, allocations: 0.685 MB / 479.8 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1387, allocations: 4 kB / 479.8 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1387, allocations: 4 kB / 479.8 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000586/0.1393, allocations: 176.7 kB / 479.9 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000339/0.1397, allocations: 95.86 kB / 480 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003229/0.1429, allocations: 2.527 MB / 482.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.1432, allocations: 23.92 kB / 482.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.1433, allocations: 27.97 kB / 482.6 MB, free: 13.35 MB / 366.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.0002417/0.1435, allocations: 202.5 kB / 482.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/0.1436, allocations: 31.62 kB / 482.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.1447, allocations: 0.6297 MB / 483.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1448, allocations: 11.94 kB / 483.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.1448, allocations: 0 / 483.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.1448, allocations: 3.984 kB / 483.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.1469, allocations: 1.359 MB / 484.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1469, allocations: 3.984 kB / 484.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.1473, allocations: 71.91 kB / 484.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00045/0.1477, allocations: 148.8 kB / 485.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.1478, allocations: 11.94 kB / 485.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002784/0.1505, allocations: 2.299 MB / 487.4 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.1506, allocations: 8.031 kB / 487.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.152, allocations: 0.9569 MB / 488.3 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.1521, allocations: 112.6 kB / 488.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.1521, allocations: 4.047 kB / 488.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.1523, allocations: 24.09 kB / 488.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.285e-05/0.1524, allocations: 39.83 kB / 488.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.048e-05/0.1524, allocations: 15.92 kB / 488.5 MB, free: 7.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.1526, allocations: 198 kB / 488.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1526, allocations: 0 / 488.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005784/0.1532, allocations: 140 kB / 488.9 MB, free: 6.809 MB / 366.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.001606/0.1548, allocations: 1.501 MB / 490.4 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.156, allocations: 0.6658 MB / 491 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.156, allocations: 0 / 491 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006263/0.1567, allocations: 422.3 kB / 491.4 MB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.1571, allocations: 62.97 kB / 491.5 MB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005753/0.1629, allocations: 4.649 MB / 496.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.1634, allocations: 0.8671 MB / 497 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.1636, allocations: 75.22 kB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.1638, allocations: 147.4 kB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1638, allocations: 0 / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.1864, allocations: 9.235 MB / 0.4946 GB, free: 5.066 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002568/0.1867, allocations: 242.8 kB / 0.4948 GB, free: 4.805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.011, allocations: 2 kB / 0.4948 GB, free: 4.805 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches