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.001075/0.001075, allocations: 71.75 kB / 21.69 MB, free: 2.84 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.00122/0.00122, allocations: 164.8 kB / 24.99 MB, free: 8.293 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 0.9472/0.9472, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.2459/0.2459, allocations: 29.42 MB / 291.2 MB, free: 2.523 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.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 4.208e-06/4.208e-06, allocations: 0 / 369.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.932e-05/3.352e-05, allocations: 2.312 kB / 369.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004114/0.004148, allocations: 3.471 MB / 373.1 MB, free: 7.844 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.005669, allocations: 1.228 MB / 374.3 MB, free: 6.609 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.005832, allocations: 15.88 kB / 374.3 MB, free: 6.594 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006379/0.00647, allocations: 151.2 kB / 374.5 MB, free: 6.445 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000406/0.006876, allocations: 183 kB / 374.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.007191, allocations: 135.5 kB / 374.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.00754, allocations: 294.8 kB / 375.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.007806, allocations: 113.5 kB / 375.2 MB, free: 5.738 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.008095, allocations: 175.5 kB / 375.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.00826, allocations: 99.67 kB / 375.4 MB, free: 5.469 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.008281, allocations: 12 kB / 375.5 MB, free: 5.457 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.008547, allocations: 191.4 kB / 375.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.234e-05/0.00863, allocations: 67.75 kB / 375.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.008702, allocations: 67.84 kB / 375.8 MB, free: 5.137 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.009073, allocations: 251.1 kB / 376 MB, free: 4.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.009078, allocations: 4 kB / 376 MB, free: 4.887 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.009079, allocations: 0 / 376 MB, free: 4.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.009084, allocations: 0 / 376 MB, free: 4.887 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.0005858/0.009669, allocations: 0.5154 MB / 376.5 MB, free: 4.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.009715, allocations: 15.98 kB / 376.6 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005392/0.01025, allocations: 112.6 kB / 376.7 MB, free: 4.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.01056, allocations: 216.1 kB / 376.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.01058, allocations: 16.69 kB / 376.9 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.01061, allocations: 16.31 kB / 376.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.0109, allocations: 205.4 kB / 377.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.01091, allocations: 192 / 377.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.01094, allocations: 16.11 kB / 377.1 MB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/0.01097, allocations: 12.33 kB / 377.1 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.01115, allocations: 120.3 kB / 377.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.01233, allocations: 1.233 MB / 378.5 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.01249, allocations: 110 kB / 378.6 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.531e-05/0.01254, allocations: 35.61 kB / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.01255, allocations: 0 / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.01258, allocations: 37.39 kB / 378.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.01258, allocations: 4 kB / 378.7 MB, free: 2.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002522/0.01283, allocations: 121.4 kB / 378.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.01291, allocations: 81.11 kB / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.01304, allocations: 234.6 kB / 379.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.01305, allocations: 25.7 kB / 379.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.01314, allocations: 206.8 kB / 379.3 MB, free: 1.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.01317, allocations: 39.64 kB / 379.4 MB, free: 1.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.01322, allocations: 51.36 kB / 379.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.0134, allocations: 0.5 MB / 379.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.934e-05/0.01344, allocations: 20.05 kB / 379.9 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.01353, allocations: 140.1 kB / 380.1 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.01367, allocations: 183.5 kB / 380.3 MB, free: 272 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01367, allocations: 0 / 380.3 MB, free: 272 kB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001854/0.01385, allocations: 165.2 kB / 380.4 MB, free: 100 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.01387, allocations: 8 kB / 380.4 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.01388, allocations: 7.984 kB / 380.4 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.01389, allocations: 4.344 kB / 380.4 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.01407, allocations: 51.92 kB / 380.5 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.01509, allocations: 1.809 MB / 382.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.138e-05/0.01516, allocations: 23.83 kB / 382.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.01518, allocations: 8 kB / 382.3 MB, free: 14.07 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.0001009/0.01528, allocations: 168.5 kB / 382.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.01531, allocations: 20.02 kB / 382.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.01547, allocations: 111 kB / 382.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.01547, allocations: 4 kB / 382.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.01547, allocations: 0 / 382.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01548, allocations: 0 / 382.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.01592, allocations: 448.4 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01593, allocations: 0 / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.912e-05/0.01603, allocations: 31.92 kB / 383.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.01603, allocations: 0 / 383.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.01604, allocations: 8 kB / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006743/0.01672, allocations: 1.813 MB / 384.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01672, allocations: 0 / 384.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005328/0.01725, allocations: 306.4 kB / 385.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.01727, allocations: 15.91 kB / 385.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.01729, allocations: 8 kB / 385.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.012e-05/0.01734, allocations: 4 kB / 385.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.01737, allocations: 28 kB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01738, allocations: 4 kB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.161e-05/0.01745, allocations: 165.1 kB / 385.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01745, allocations: 0 / 385.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002388/0.01769, allocations: 51.89 kB / 385.5 MB, free: 10.7 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 9.991e-05/0.01779, allocations: 99.23 kB / 385.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.01801, allocations: 102.9 kB / 385.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01801, allocations: 4.062 kB / 385.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.198e-05/0.01808, allocations: 51.09 kB / 385.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.01838, allocations: 31.98 kB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.01946, allocations: 475.9 kB / 386.2 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.252e-05/0.01951, allocations: 83.97 kB / 386.3 MB, free: 9.797 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.722e-05/0.01958, allocations: 29.47 kB / 386.3 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.613e-05/0.01961, allocations: 16.5 kB / 386.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01961, allocations: 4 kB / 386.4 MB, free: 9.746 MB / 362.7 MB Notification: Performance of Templates: time 0.003503/0.02312, allocations: 1.372 MB / 387.7 MB, free: 8.395 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.195878299186006]