Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.000999/0.000999, allocations: 80.8 kB / 21.49 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.001075/0.001075, 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.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.2337/0.2337, allocations: 29.42 MB / 291.2 MB, free: 2.508 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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter_dq0.i.[0-9,]+.|meter_dq0.p.[0-9,]+.|meter_dq0.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter_dq0.i.[0-9,]+.|meter_dq0.p.[0-9,]+.|meter_dq0.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 316.9 MB, free: 8 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.859e-05, allocations: 5.219 kB / 316.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.003941/0.003959, allocations: 4.129 MB / 321 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.005605, allocations: 1.352 MB / 322.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.005758, allocations: 23.81 kB / 322.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005254/0.006283, allocations: 274.7 kB / 322.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003185/0.006602, allocations: 226.7 kB / 322.9 MB, free: 9.977 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004511/0.007053, allocations: 255.1 kB / 323.1 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.007457, allocations: 0.5376 MB / 323.6 MB, free: 9.188 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.007712, allocations: 240.4 kB / 323.9 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.008085, allocations: 375 kB / 324.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.008313, allocations: 243.3 kB / 324.5 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.008348, allocations: 28 kB / 324.5 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.008563, allocations: 147.8 kB / 324.7 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.008716, allocations: 235.4 kB / 324.9 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.008825, allocations: 163.7 kB / 325 MB, free: 7.781 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.009185, allocations: 446.4 kB / 325.5 MB, free: 7.344 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.009187, allocations: 0 / 325.5 MB, free: 7.344 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.009188, allocations: 7.938 kB / 325.5 MB, free: 7.336 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.009193, allocations: 0 / 325.5 MB, free: 7.336 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.0006141/0.009807, allocations: 0.6182 MB / 326.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.009837, allocations: 15.98 kB / 326.1 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003915/0.01023, allocations: 124.8 kB / 326.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.01053, allocations: 308.4 kB / 326.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.01055, allocations: 33.36 kB / 326.6 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.01062, allocations: 40.56 kB / 326.6 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.01097, allocations: 446.9 kB / 327.1 MB, free: 5.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.01098, allocations: 3.938 kB / 327.1 MB, free: 5.652 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.01101, allocations: 20 kB / 327.1 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-05/0.01106, allocations: 28.98 kB / 327.1 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.01126, allocations: 182.6 kB / 327.3 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.01267, allocations: 2.317 MB / 329.6 MB, free: 2.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.01282, allocations: 123.6 kB / 329.7 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.802e-05/0.01288, allocations: 57.75 kB / 329.8 MB, free: 2.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.0129, allocations: 8 kB / 329.8 MB, free: 2.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.01292, allocations: 42.5 kB / 329.8 MB, free: 2.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.01292, allocations: 0 / 329.8 MB, free: 2.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006117/0.01354, allocations: 460.4 kB / 330.3 MB, free: 2.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.01357, allocations: 85.05 kB / 330.4 MB, free: 2.152 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.01373, allocations: 298.7 kB / 330.7 MB, free: 1.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.01375, allocations: 29.7 kB / 330.7 MB, free: 1.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.01385, allocations: 260.5 kB / 330.9 MB, free: 1.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.278e-05/0.0139, allocations: 103.1 kB / 331 MB, free: 1.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.01398, allocations: 94.22 kB / 331.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.466e-05/0.01407, allocations: 346.7 kB / 331.5 MB, free: 1.008 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.61e-05/0.01412, allocations: 47.81 kB / 331.5 MB, free: 0.957 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.01426, allocations: 254.6 kB / 331.8 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.01451, allocations: 356 kB / 332.1 MB, free: 176 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01451, allocations: 0 / 332.1 MB, free: 176 kB / 298.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0002909/0.0148, allocations: 304.5 kB / 332.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.01482, allocations: 11.94 kB / 332.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.006e-06/0.01482, allocations: 8 kB / 332.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.01484, allocations: 8 kB / 332.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.01508, allocations: 122.5 kB / 332.6 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.0151, allocations: 19.92 kB / 332.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.761e-05/0.0152, allocations: 12 kB / 332.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.01522, allocations: 20 kB / 332.6 MB, free: 15.67 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.476e-05/0.01531, allocations: 144.5 kB / 332.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.746e-05/0.01535, allocations: 31.94 kB / 332.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000215/0.01556, allocations: 185.7 kB / 333 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.01557, allocations: 4 kB / 333 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.01557, allocations: 0 / 333 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.01557, allocations: 7.984 kB / 333 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005014/0.01608, allocations: 0.5169 MB / 333.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.01608, allocations: 8 kB / 333.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.01626, allocations: 78.33 kB / 333.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.01626, allocations: 4 kB / 333.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.01627, allocations: 8 kB / 333.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.01627, allocations: 3.984 kB / 333.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.01628, allocations: 4 kB / 333.6 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.01654, allocations: 347.5 kB / 333.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.921e-05/0.01657, allocations: 31.77 kB / 334 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.0166, allocations: 8 kB / 334 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.01667, allocations: 4 kB / 334 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.0167, allocations: 23.95 kB / 334 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.01672, allocations: 8 kB / 334 MB, free: 14.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.583e-05/0.01678, allocations: 104.5 kB / 334.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01678, allocations: 0 / 334.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002361/0.01702, allocations: 92 kB / 334.2 MB, free: 14 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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 8.256e-05/0.0171, allocations: 88.3 kB / 334.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.01731, allocations: 214 kB / 334.5 MB, free: 13.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.01731, allocations: 4 kB / 334.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.095e-05/0.01738, allocations: 80.64 kB / 334.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.01763, allocations: 82.69 kB / 334.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009935/0.01862, allocations: 0.7997 MB / 335.5 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.77e-05/0.01871, allocations: 141.2 kB / 335.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.01882, allocations: 55.3 kB / 335.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.01895, allocations: 111.4 kB / 335.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.01895, allocations: 0 / 335.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of Templates: time 0.005028/0.02398, allocations: 3.586 MB / 339.3 MB, free: 8.855 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.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: 2.8543346519581974]