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.001818/0.001817, allocations: 110.8 kB / 17.29 MB, free: 6.203 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.002318/0.002318, allocations: 197.3 kB / 18.21 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.662/2.662, allocations: 222.9 MB / 241.9 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.386/0.386, allocations: 38.04 MB / 330.1 MB, free: 9.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 70.19 kB / 399 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1779, allocations: 58.06 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.0209/0.1989, allocations: 5.345 MB / 462.4 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006599/0.2055, allocations: 2.586 MB / 464.9 MB, free: 456 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007778/0.2064, allocations: 19.88 kB / 465 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001922/0.2084, allocations: 414.6 kB / 465.4 MB, free: 20 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002224/0.2106, allocations: 482.3 kB / 465.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.2119, allocations: 255.4 kB / 466.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.2134, allocations: 0.7398 MB / 466.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005184/0.2186, allocations: 365.5 kB / 467.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009335/0.2196, allocations: 314.7 kB / 467.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008671/0.2205, allocations: 354.8 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.2207, allocations: 36 kB / 467.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.2225, allocations: 0.6313 MB / 468.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.2229, allocations: 203.5 kB / 468.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005334/0.2235, allocations: 246.7 kB / 468.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00149/0.225, allocations: 0.573 MB / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.225, allocations: 0 / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.225, allocations: 0 / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.2251, allocations: 4 kB / 469.5 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.00207/0.2272, allocations: 0.7762 MB / 470.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.841e-05/0.2272, allocations: 11.89 kB / 470.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003138/0.2304, allocations: 204.1 kB / 470.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009346/0.2314, allocations: 358.3 kB / 470.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.2314, allocations: 29.38 kB / 470.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.2316, allocations: 48.36 kB / 470.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.2334, allocations: 0.6266 MB / 471.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.2335, allocations: 7.844 kB / 471.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.302e-05/0.2336, allocations: 16 kB / 471.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-05/0.2337, allocations: 36.97 kB / 471.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005995/0.2397, allocations: 0.6128 MB / 472.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005988/0.2458, allocations: 2.257 MB / 474.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.247, allocations: 486.6 kB / 475 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005888/0.2476, allocations: 239.7 kB / 475.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.148e-05/0.2477, allocations: 8 kB / 475.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.2477, allocations: 34.56 kB / 475.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 5.22e-06/0.2478, allocations: 0 / 475.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.006052/0.2538, allocations: 1.709 MB / 477 MB, free: 4.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.632e-05/0.2539, allocations: 81.11 kB / 477 MB, free: 3.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00474/0.2587, allocations: 275 kB / 477.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.2589, allocations: 41.69 kB / 477.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.2592, allocations: 232.2 kB / 477.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.2595, allocations: 153.8 kB / 477.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/0.2598, allocations: 82.25 kB / 477.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.26, allocations: 350.7 kB / 478.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.2606, allocations: 181 kB / 478.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.2612, allocations: 286.4 kB / 478.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.2624, allocations: 0.5082 MB / 479.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.2625, allocations: 8 kB / 479.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002109/0.2646, allocations: 0.6848 MB / 479.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.2646, allocations: 4 kB / 479.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.2647, allocations: 4 kB / 479.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009814/0.2657, allocations: 180.9 kB / 480 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006537/0.2663, allocations: 91.83 kB / 480.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006068/0.2724, allocations: 2.785 MB / 482.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.273, allocations: 23.98 kB / 482.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/0.2731, allocations: 23.98 kB / 482.9 MB, free: 13.81 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.0004817/0.2736, allocations: 195.5 kB / 483.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.2738, allocations: 47.5 kB / 483.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006431/0.2802, allocations: 0.6297 MB / 483.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.2803, allocations: 4 kB / 483.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2803, allocations: 4 kB / 483.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.2803, allocations: 7.922 kB / 483.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.2844, allocations: 1.347 MB / 485.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.2845, allocations: 4 kB / 485.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000651/0.2851, allocations: 79.89 kB / 485.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007958/0.2859, allocations: 144.8 kB / 485.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.384e-05/0.286, allocations: 16 kB / 485.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00565/0.2917, allocations: 2.572 MB / 487.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.2918, allocations: 0 / 487.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.2945, allocations: 0.957 MB / 488.9 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.2947, allocations: 108.8 kB / 489 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.2949, allocations: 15.94 kB / 489 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.2953, allocations: 8 kB / 489 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.2955, allocations: 31.95 kB / 489.1 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/0.2955, allocations: 15.98 kB / 489.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003676/0.2959, allocations: 198 kB / 489.3 MB, free: 7.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2959, allocations: 0 / 489.3 MB, free: 7.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001256/0.2972, allocations: 144.2 kB / 489.4 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.0002352/0.2975, allocations: 111.1 kB / 489.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00709/0.3046, allocations: 0.7472 MB / 490.3 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.3046, allocations: 0 / 490.3 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.306, allocations: 422.3 kB / 490.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.3072, allocations: 75.02 kB / 490.8 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004425/0.3117, allocations: 1.35 MB / 492.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/0.3127, allocations: 0.8746 MB / 493 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.3129, allocations: 35.42 kB / 493 MB, free: 3.316 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.313, allocations: 0 / 493 MB, free: 3.316 MB / 366.1 MB Notification: Performance of Templates: time 0.02442/0.3374, allocations: 6.888 MB / 499.9 MB, free: 12.42 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/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