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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001178/0.001179, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.34/1.34, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1906/0.1906, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 65.67 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1005, allocations: 58.05 MB / 456.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00621/0.1067, allocations: 4.932 MB / 461.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003418/0.1102, allocations: 2.477 MB / 464.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003876/0.1106, allocations: 11.94 kB / 464.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.112, allocations: 443.5 kB / 464.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.1134, allocations: 0.5096 MB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008123/0.1142, allocations: 275.2 kB / 465.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009701/0.1152, allocations: 0.7399 MB / 466.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005692/0.1158, allocations: 333.5 kB / 466.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005341/0.1163, allocations: 310.7 kB / 466.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005323/0.1169, allocations: 334.8 kB / 467.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.591e-05/0.117, allocations: 36 kB / 467.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.1181, allocations: 0.6352 MB / 467.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.1183, allocations: 191.5 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003472/0.1187, allocations: 250.7 kB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.12, allocations: 0.7557 MB / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.12, allocations: 0 / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.12, allocations: 0 / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.1201, allocations: 4 kB / 469 MB, free: 11.86 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.00133/0.1214, allocations: 0.7644 MB / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1214, allocations: 15.89 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.1231, allocations: 200.1 kB / 470 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.1237, allocations: 358.3 kB / 470.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.1237, allocations: 33.36 kB / 470.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.526e-05/0.1238, allocations: 44.38 kB / 470.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.1248, allocations: 0.6227 MB / 471.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.1249, allocations: 7.938 kB / 471.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.396e-05/0.1249, allocations: 23.98 kB / 471.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.094e-05/0.125, allocations: 28.98 kB / 471.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009825/0.126, allocations: 0.6128 MB / 471.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.1293, allocations: 2.261 MB / 474 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006756/0.13, allocations: 494.5 kB / 474.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.1303, allocations: 233.7 kB / 474.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.1303, allocations: 7.984 kB / 474.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.1304, allocations: 42.5 kB / 474.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.1304, allocations: 0 / 474.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00332/0.1337, allocations: 1.705 MB / 476.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.1338, allocations: 85.09 kB / 476.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.134, allocations: 275 kB / 476.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.1341, allocations: 33.83 kB / 476.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1342, allocations: 236 kB / 477.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1344, allocations: 149.8 kB / 477.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1345, allocations: 86.25 kB / 477.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1346, allocations: 346.7 kB / 477.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.1349, allocations: 177 kB / 477.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.1352, allocations: 298.3 kB / 478.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/0.1359, allocations: 0.5005 MB / 478.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1359, allocations: 0 / 478.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001142/0.1371, allocations: 0.6848 MB / 479.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1371, allocations: 11.94 kB / 479.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1371, allocations: 4 kB / 479.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005605/0.1377, allocations: 180.9 kB / 479.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/0.138, allocations: 91.88 kB / 479.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/0.1414, allocations: 2.789 MB / 482.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.1417, allocations: 19.98 kB / 482.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.1417, allocations: 24 kB / 482.4 MB, free: 13.82 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.000212/0.1419, allocations: 199.7 kB / 482.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.142, allocations: 39.67 kB / 482.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.1432, allocations: 0.6375 MB / 483.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1432, allocations: 4 kB / 483.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1432, allocations: 0 / 483.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.1432, allocations: 7.938 kB / 483.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.1453, allocations: 1.359 MB / 484.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1453, allocations: 0 / 484.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.1457, allocations: 83.89 kB / 484.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004398/0.1461, allocations: 140.8 kB / 484.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.1462, allocations: 12 kB / 484.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.1492, allocations: 2.568 MB / 487.5 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1492, allocations: 8 kB / 487.5 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.1506, allocations: 0.9532 MB / 488.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.896e-05/0.1507, allocations: 108.6 kB / 488.5 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.215e-05/0.1508, allocations: 11.94 kB / 488.5 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.151, allocations: 15.98 kB / 488.5 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.1511, allocations: 31.95 kB / 488.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.1511, allocations: 15.94 kB / 488.6 MB, free: 7.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001888/0.1513, allocations: 197.9 kB / 488.8 MB, free: 7.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1513, allocations: 4 kB / 488.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006286/0.152, allocations: 140 kB / 488.9 MB, free: 7.012 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.0001433/0.1521, allocations: 107.1 kB / 489 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.1535, allocations: 0.7357 MB / 489.8 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.1535, allocations: 4 kB / 489.8 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.1542, allocations: 426.2 kB / 490.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.1547, allocations: 67.53 kB / 490.3 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001883/0.1566, allocations: 1.131 MB / 491.4 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.1571, allocations: 0.8707 MB / 492.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.1573, allocations: 75.22 kB / 492.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.242e-05/0.1574, allocations: 35.42 kB / 492.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1574, allocations: 0 / 492.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of Templates: time 0.01064/0.168, allocations: 5.72 MB / 498.1 MB, free: 13.78 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches