Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001136/0.001136, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001155/0.001155, allocations: 169.3 kB / 24.82 MB, free: 9.324 MB / 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.105/1.105, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.3048/0.3048, allocations: 29.43 MB / 291.2 MB, free: 2.477 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 370.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4e-05/4.26e-05, allocations: 4.281 kB / 370.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005778/0.005821, allocations: 3.456 MB / 373.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.007634, allocations: 1.02 MB / 374.6 MB, free: 6.23 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002311/0.007865, allocations: 15.88 kB / 374.6 MB, free: 6.215 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006404/0.008506, allocations: 159.2 kB / 374.7 MB, free: 6.059 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005281/0.009034, allocations: 175 kB / 374.9 MB, free: 5.887 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003858/0.00942, allocations: 135.5 kB / 375.1 MB, free: 5.754 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004738/0.009894, allocations: 290.8 kB / 375.3 MB, free: 5.469 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002879/0.01018, allocations: 106.3 kB / 375.4 MB, free: 5.367 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.01062, allocations: 175.5 kB / 375.6 MB, free: 5.195 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.01083, allocations: 95.69 kB / 375.7 MB, free: 5.102 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.01085, allocations: 20 kB / 375.7 MB, free: 5.082 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003772/0.01123, allocations: 191.4 kB / 375.9 MB, free: 4.895 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.01135, allocations: 75.73 kB / 376 MB, free: 4.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.01145, allocations: 59.84 kB / 376 MB, free: 4.762 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.01195, allocations: 247.1 kB / 376.3 MB, free: 4.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.01195, allocations: 0 / 376.3 MB, free: 4.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.01196, allocations: 0 / 376.3 MB, free: 4.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.01196, allocations: 0 / 376.3 MB, free: 4.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006834/0.01265, allocations: 0.527 MB / 376.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.0127, allocations: 19.97 kB / 376.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005284/0.01323, allocations: 104.7 kB / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.01359, allocations: 208.1 kB / 377.1 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.01361, allocations: 12.7 kB / 377.1 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.01365, allocations: 16.38 kB / 377.2 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.01393, allocations: 193.3 kB / 377.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.01395, allocations: 12.17 kB / 377.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.01396, allocations: 8.125 kB / 377.4 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.264e-05/0.014, allocations: 16.31 kB / 377.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.01413, allocations: 92.33 kB / 377.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.01548, allocations: 1.191 MB / 378.7 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.01567, allocations: 102 kB / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.728e-05/0.01572, allocations: 35.55 kB / 378.8 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.01574, allocations: 4 kB / 378.8 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.01577, allocations: 33.39 kB / 378.8 MB, free: 1.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 3.767e-06/0.01577, allocations: 0 / 378.8 MB, free: 1.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002701/0.01604, allocations: 112.8 kB / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.0161, allocations: 77.11 kB / 379 MB, free: 1.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.01626, allocations: 238.5 kB / 379.3 MB, free: 1.293 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.01628, allocations: 29.7 kB / 379.3 MB, free: 1.258 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.0164, allocations: 206.9 kB / 379.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.01643, allocations: 43.64 kB / 379.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.01651, allocations: 51.34 kB / 379.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.01669, allocations: 0.5078 MB / 380.1 MB, free: 436 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.01673, allocations: 15.98 kB / 380.1 MB, free: 420 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.68e-05/0.01683, allocations: 130.9 kB / 380.2 MB, free: 240 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.01698, allocations: 164.1 kB / 380.4 MB, free: 24 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.01698, allocations: 0 / 380.4 MB, free: 24 kB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002097/0.01719, allocations: 165.5 kB / 380.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.01721, allocations: 4 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.01722, allocations: 8 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.01724, allocations: 7.938 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.01743, allocations: 55.91 kB / 380.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.01866, allocations: 1.79 MB / 382.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.01878, allocations: 20.05 kB / 382.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.0188, allocations: 12 kB / 382.5 MB, free: 13.85 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.01894, allocations: 168.5 kB / 382.6 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.01898, allocations: 19.91 kB / 382.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.01914, allocations: 95.11 kB / 382.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01914, allocations: 4 kB / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.01915, allocations: 3.938 kB / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.01915, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004676/0.01962, allocations: 393.1 kB / 383.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.01962, allocations: 8.062 kB / 383.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.01972, allocations: 31.97 kB / 383.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.01973, allocations: 4 kB / 383.2 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.01974, allocations: 7.875 kB / 383.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009115/0.02065, allocations: 1.794 MB / 385 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.02066, allocations: 7.938 kB / 385 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/0.02092, allocations: 302.8 kB / 385.3 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.238e-05/0.02094, allocations: 15.91 kB / 385.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.02096, allocations: 3.984 kB / 385.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.906e-05/0.02101, allocations: 8 kB / 385.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.02104, allocations: 11.92 kB / 385.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.02105, allocations: 4 kB / 385.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.282e-05/0.02115, allocations: 161 kB / 385.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02115, allocations: 0 / 385.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002863/0.02143, allocations: 55.88 kB / 385.5 MB, free: 10.58 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001506/0.02158, allocations: 95.28 kB / 385.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.02182, allocations: 103.4 kB / 385.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.02182, allocations: 0 / 385.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.739e-05/0.02189, allocations: 39.59 kB / 385.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.02221, allocations: 43.84 kB / 385.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.0234, allocations: 467.8 kB / 386.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.14e-05/0.02347, allocations: 83.97 kB / 386.3 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.85e-05/0.02355, allocations: 21.48 kB / 386.4 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.494e-05/0.02364, allocations: 94.19 kB / 386.5 MB, free: 9.574 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02364, allocations: 0 / 386.5 MB, free: 9.574 MB / 362.7 MB Notification: Performance of Templates: time 0.004434/0.02808, allocations: 1.483 MB / 387.9 MB, free: 8.113 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5269090780057013]