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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 161.7 kB / 24.27 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.3522/0.3522, allocations: 29.41 MB / 290.5 MB, free: 2.457 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 368.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.323e-05/4.54e-05, allocations: 2.312 kB / 368.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007973/0.008019, allocations: 4.742 MB / 373.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004604/0.01262, allocations: 2.313 MB / 375.9 MB, free: 4.238 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.01296, allocations: 15.88 kB / 375.9 MB, free: 4.223 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.01442, allocations: 434 kB / 376.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001424/0.01584, allocations: 0.5247 MB / 376.9 MB, free: 3.27 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000806/0.01665, allocations: 286.9 kB / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.01776, allocations: 0.7552 MB / 377.9 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005954/0.01836, allocations: 289.6 kB / 378.2 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009304/0.01929, allocations: 446.6 kB / 378.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006408/0.01993, allocations: 311.1 kB / 379 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.859e-05/0.02003, allocations: 36 kB / 379 MB, free: 1.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.02113, allocations: 0.545 MB / 379.5 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.02142, allocations: 211.4 kB / 379.7 MB, free: 424 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.02171, allocations: 167.7 kB / 379.9 MB, free: 256 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001504/0.02322, allocations: 0.7983 MB / 380.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.02322, allocations: 0 / 380.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.02322, allocations: 4 kB / 380.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.02324, allocations: 0 / 380.7 MB, free: 15.45 MB / 362.7 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.001716/0.02496, allocations: 0.7077 MB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.02501, allocations: 15.98 kB / 381.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00223/0.02724, allocations: 292.2 kB / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.02792, allocations: 324.3 kB / 382 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.02797, allocations: 33.36 kB / 382.1 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.02807, allocations: 44.36 kB / 382.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.02925, allocations: 0.6268 MB / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.02928, allocations: 4.141 kB / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.463e-05/0.02934, allocations: 20.36 kB / 382.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-05/0.0294, allocations: 36.92 kB / 382.8 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.03054, allocations: 0.6089 MB / 383.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003917/0.03446, allocations: 2 MB / 385.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007335/0.03519, allocations: 381.4 kB / 385.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.03555, allocations: 209.7 kB / 386 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.03559, allocations: 15.72 kB / 386 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.03564, allocations: 38.56 kB / 386 MB, free: 9.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.405e-06/0.03565, allocations: 0 / 386 MB, free: 9.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.004053/0.0397, allocations: 1.56 MB / 387.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.923e-05/0.03979, allocations: 81.23 kB / 387.7 MB, free: 8.219 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.04013, allocations: 261.7 kB / 387.9 MB, free: 7.953 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.04017, allocations: 29.7 kB / 388 MB, free: 7.918 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.04039, allocations: 236.5 kB / 388.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.04058, allocations: 158.6 kB / 388.3 MB, free: 7.523 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.04076, allocations: 86.14 kB / 388.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004992/0.04126, allocations: 342.8 kB / 388.8 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/0.04158, allocations: 180.9 kB / 388.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004535/0.04204, allocations: 289.7 kB / 389.2 MB, free: 6.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008421/0.04288, allocations: 0.508 MB / 389.7 MB, free: 6.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.04288, allocations: 4 kB / 389.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00147/0.04435, allocations: 0.6931 MB / 390.4 MB, free: 5.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.04438, allocations: 12.06 kB / 390.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.04439, allocations: 0 / 390.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008339/0.04522, allocations: 216.1 kB / 390.6 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004006/0.04562, allocations: 99.81 kB / 390.7 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004275/0.0499, allocations: 2.635 MB / 393.4 MB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.05016, allocations: 23.92 kB / 393.4 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.0502, allocations: 20 kB / 393.4 MB, free: 2.238 MB / 362.7 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.0002797/0.05048, allocations: 189.7 kB / 393.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.0506, allocations: 51.77 kB / 393.7 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.05191, allocations: 0.6371 MB / 394.3 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.05192, allocations: 4 kB / 394.3 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.05192, allocations: 0 / 394.3 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.05193, allocations: 0 / 394.3 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.05432, allocations: 1.161 MB / 395.5 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.05432, allocations: 0 / 395.5 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.05472, allocations: 87.83 kB / 395.5 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006193/0.05534, allocations: 172.7 kB / 395.7 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.05537, allocations: 8 kB / 395.7 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003762/0.05914, allocations: 2.43 MB / 398.2 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.05914, allocations: 0 / 398.2 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.06081, allocations: 0.9597 MB / 399.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.06089, allocations: 35.77 kB / 399.2 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.06094, allocations: 12.03 kB / 399.2 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.06115, allocations: 16 kB / 399.2 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.06124, allocations: 39.86 kB / 399.2 MB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.28e-05/0.06127, allocations: 12 kB / 399.2 MB, free: 12.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002131/0.06148, allocations: 177.2 kB / 399.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06149, allocations: 4 kB / 399.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006274/0.06211, allocations: 136 kB / 399.5 MB, free: 11.92 MB / 378.7 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.0001589/0.06227, allocations: 111.3 kB / 399.6 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.06361, allocations: 0.6462 MB / 400.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.06362, allocations: 0 / 400.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007801/0.0644, allocations: 411.6 kB / 400.7 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.06492, allocations: 67.61 kB / 400.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.06691, allocations: 1.043 MB / 401.8 MB, free: 9.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.06724, allocations: 266.7 kB / 402.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002082/0.06745, allocations: 66.92 kB / 402.1 MB, free: 9.238 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.973e-05/0.06755, allocations: 28.5 kB / 402.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of SimCode: time 4.6e-07/0.06755, allocations: 0 / 402.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of Templates: time 0.01241/0.07996, allocations: 5.425 MB / 407.6 MB, free: 3.836 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.066042168997228]