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.001067/0.001067, allocations: 117.5 kB / 16.63 MB, free: 6.812 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.001035/0.001035, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.319/1.319, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1701/0.1701, allocations: 38.03 MB / 329.4 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 56.77 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09601/0.09728, allocations: 58.06 MB / 456.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005827/0.1031, allocations: 5.347 MB / 461.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.1064, allocations: 2.59 MB / 464.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00033/0.1067, allocations: 23.88 kB / 464.4 MB, free: 348 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.1079, allocations: 413.7 kB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.1089, allocations: 486.3 kB / 465.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.1095, allocations: 251.4 kB / 465.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006501/0.1102, allocations: 0.7359 MB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004857/0.1107, allocations: 373.5 kB / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.111, allocations: 318.7 kB / 466.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.1114, allocations: 346.8 kB / 467.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.1114, allocations: 36 kB / 467.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008091/0.1122, allocations: 0.6313 MB / 468 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.1124, allocations: 203.4 kB / 468.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.1127, allocations: 242.9 kB / 468.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008013/0.1135, allocations: 0.8178 MB / 469.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1135, allocations: 0 / 469.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1135, allocations: 0 / 469.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1135, allocations: 0 / 469.2 MB, free: 11.54 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.0009654/0.1145, allocations: 0.7684 MB / 470 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1145, allocations: 15.89 kB / 470 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.056e-05/0.1146, allocations: 90.64 kB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.1162, allocations: 204 kB / 470.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.1166, allocations: 354.5 kB / 470.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.1166, allocations: 33.31 kB / 470.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/0.1167, allocations: 48.34 kB / 470.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008835/0.1176, allocations: 0.6226 MB / 471.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.1176, allocations: 7.906 kB / 471.3 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.1177, allocations: 16 kB / 471.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/0.1177, allocations: 32.92 kB / 471.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008563/0.1186, allocations: 0.6089 MB / 472 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003064/0.1217, allocations: 2.261 MB / 474.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005972/0.1223, allocations: 488.1 kB / 474.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.1226, allocations: 233.7 kB / 475 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.1226, allocations: 4 kB / 475 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.1227, allocations: 42.55 kB / 475 MB, free: 5.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.555e-06/0.1227, allocations: 3.938 kB / 475 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003189/0.1259, allocations: 1.707 MB / 476.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.1259, allocations: 81.11 kB / 476.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.1262, allocations: 278.9 kB / 477.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.1262, allocations: 33.7 kB / 477.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.1264, allocations: 232.1 kB / 477.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1265, allocations: 145.8 kB / 477.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1266, allocations: 86.28 kB / 477.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1267, allocations: 350.7 kB / 477.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.127, allocations: 181 kB / 478.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003357/0.1274, allocations: 290.4 kB / 478.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006482/0.128, allocations: 0.5043 MB / 478.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.128, allocations: 0 / 478.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001136/0.1292, allocations: 0.681 MB / 479.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1292, allocations: 8 kB / 479.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1292, allocations: 4 kB / 479.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005769/0.1298, allocations: 184.8 kB / 479.7 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.1301, allocations: 95.88 kB / 479.8 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/0.1335, allocations: 2.797 MB / 482.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.1337, allocations: 23.92 kB / 482.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.1338, allocations: 20 kB / 482.7 MB, free: 13.4 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.0002075/0.134, allocations: 193.7 kB / 482.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.1341, allocations: 35.56 kB / 482.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.1352, allocations: 0.6375 MB / 483.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1352, allocations: 4 kB / 483.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1352, allocations: 3.938 kB / 483.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1352, allocations: 7.938 kB / 483.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.1373, allocations: 1.351 MB / 484.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1373, allocations: 0 / 484.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.1377, allocations: 87.95 kB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004358/0.1381, allocations: 136.7 kB / 485.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.1382, allocations: 20.09 kB / 485.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002789/0.141, allocations: 2.564 MB / 487.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.141, allocations: 4 kB / 487.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.1423, allocations: 0.9571 MB / 488.7 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.882e-05/0.1424, allocations: 104.7 kB / 488.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.1425, allocations: 19.88 kB / 488.8 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1427, allocations: 16.03 kB / 488.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.1428, allocations: 31.95 kB / 488.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.1428, allocations: 12 kB / 488.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.143, allocations: 197.9 kB / 489 MB, free: 6.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.143, allocations: 4 kB / 489 MB, free: 6.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005916/0.1436, allocations: 136 kB / 489.2 MB, free: 6.609 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.001547/0.1452, allocations: 1.505 MB / 490.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.1465, allocations: 0.7285 MB / 491.4 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1465, allocations: 8.125 kB / 491.4 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006557/0.1471, allocations: 422.3 kB / 491.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.1476, allocations: 71.3 kB / 491.9 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/0.1534, allocations: 4.646 MB / 496.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.1538, allocations: 0.8669 MB / 497.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002242/0.1541, allocations: 79.2 kB / 497.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.1543, allocations: 143.4 kB / 497.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1543, allocations: 4 kB / 497.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.1801, allocations: 9.609 MB / 0.4953 GB, free: 4.426 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.1803, allocations: 235.1 kB / 0.4956 GB, free: 4.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.075, allocations: 0 / 0.4956 GB, free: 4.172 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches