Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.001512/0.001512, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001489/0.001489, allocations: 170 kB / 24.91 MB, free: 9.199 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.078/1.078, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2855/0.2855, allocations: 29.42 MB / 291.2 MB, free: 2.488 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.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 316.8 MB, free: 0 / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/3.016e-05, allocations: 7.609 kB / 316.9 MB, free: 15.99 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005893/0.005923, allocations: 4.399 MB / 321.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.0083, allocations: 1.5 MB / 322.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002864/0.008586, allocations: 19.81 kB / 322.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004391/0.009025, allocations: 115 kB / 322.9 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000692/0.009717, allocations: 278.1 kB / 323.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.01004, allocations: 123.7 kB / 323.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006932/0.01074, allocations: 0.5134 MB / 323.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.01095, allocations: 107.1 kB / 323.9 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.01141, allocations: 291.3 kB / 324.2 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.01169, allocations: 175.5 kB / 324.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.513e-05/0.01173, allocations: 28 kB / 324.4 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.726e-05/0.01178, allocations: 28 kB / 324.4 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.0119, allocations: 107.6 kB / 324.5 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.01203, allocations: 123.7 kB / 324.6 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.01241, allocations: 263 kB / 324.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.01242, allocations: 0 / 324.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.01242, allocations: 0 / 324.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.01243, allocations: 0 / 324.9 MB, free: 7.918 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007653/0.01319, allocations: 0.5667 MB / 325.5 MB, free: 7.328 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.01324, allocations: 11.98 kB / 325.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.434e-05/0.01332, allocations: 44.91 kB / 325.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.01382, allocations: 326.1 kB / 325.8 MB, free: 6.926 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.01384, allocations: 17.03 kB / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.01389, allocations: 28.38 kB / 325.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.01418, allocations: 255.4 kB / 326.1 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.0142, allocations: 0 / 326.1 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.01422, allocations: 16 kB / 326.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.01423, allocations: 8 kB / 326.1 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.01437, allocations: 87.31 kB / 326.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.01586, allocations: 1.231 MB / 327.5 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.01614, allocations: 142.2 kB / 327.6 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.689e-05/0.0162, allocations: 43.55 kB / 327.6 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.01622, allocations: 4 kB / 327.6 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.01625, allocations: 46.48 kB / 327.7 MB, free: 4.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.01625, allocations: 0 / 327.7 MB, free: 4.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.000684/0.01694, allocations: 323.6 kB / 328 MB, free: 4.551 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.01701, allocations: 132.8 kB / 328.1 MB, free: 4.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.01722, allocations: 270.9 kB / 328.4 MB, free: 4.117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.01724, allocations: 37.64 kB / 328.4 MB, free: 4.074 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.01734, allocations: 193 kB / 328.6 MB, free: 3.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.01739, allocations: 71.39 kB / 328.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.018e-05/0.01746, allocations: 53.67 kB / 328.7 MB, free: 3.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.01758, allocations: 346.7 kB / 329.1 MB, free: 3.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.588e-05/0.01762, allocations: 19.98 kB / 329.1 MB, free: 3.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.01774, allocations: 120.8 kB / 329.2 MB, free: 3.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.01793, allocations: 178.1 kB / 329.4 MB, free: 3.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01793, allocations: 0 / 329.4 MB, free: 3.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002226/0.01815, allocations: 169.2 kB / 329.6 MB, free: 2.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.01817, allocations: 8 kB / 329.6 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.01818, allocations: 4 kB / 329.6 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.0182, allocations: 4.438 kB / 329.6 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.01844, allocations: 79.89 kB / 329.7 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007229/0.01916, allocations: 1.196 MB / 330.9 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.01926, allocations: 12 kB / 330.9 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.01928, allocations: 12 kB / 330.9 MB, free: 1.43 MB / 298.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 (31): * Single equations (assignments): 30 * 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.0001133/0.01939, allocations: 136.7 kB / 331 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.165e-05/0.01947, allocations: 23.97 kB / 331 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.01964, allocations: 120.2 kB / 331.2 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.01964, allocations: 4 kB / 331.2 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.01965, allocations: 7.938 kB / 331.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.01965, allocations: 7.922 kB / 331.2 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000493/0.02015, allocations: 324 kB / 331.5 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.02015, allocations: 4 kB / 331.5 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.0203, allocations: 47.94 kB / 331.5 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.0203, allocations: 0 / 331.5 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.02031, allocations: 11.98 kB / 331.5 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.02032, allocations: 3.938 kB / 331.6 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.02032, allocations: 4 kB / 331.6 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.02061, allocations: 397.5 kB / 331.9 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.02064, allocations: 23.81 kB / 332 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.02066, allocations: 4 kB / 332 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.02081, allocations: 11.92 kB / 332 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/0.02084, allocations: 11.98 kB / 332 MB, free: 248 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.02085, allocations: 8 kB / 332 MB, free: 240 kB / 298.7 MB Notification: Performance of sorting global known variables: time 9.115e-05/0.02094, allocations: 104.5 kB / 332.1 MB, free: 136 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02094, allocations: 0 / 332.1 MB, free: 136 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.02131, allocations: 60 kB / 332.2 MB, free: 76 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001391/0.02144, allocations: 80.36 kB / 332.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.02167, allocations: 109.7 kB / 332.3 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.02168, allocations: 8.062 kB / 332.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.377e-05/0.02174, allocations: 44.77 kB / 332.4 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.02228, allocations: 84.17 kB / 332.5 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.02367, allocations: 0.7168 MB / 333.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.553e-05/0.02376, allocations: 108.6 kB / 333.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000118/0.02388, allocations: 35 kB / 333.3 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.02403, allocations: 111.3 kB / 333.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02403, allocations: 4 kB / 333.5 MB, free: 14.71 MB / 314.7 MB Notification: Performance of Templates: time 0.006206/0.03023, allocations: 3.144 MB / 336.6 MB, free: 11.65 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.1180664459243417]