Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.0007253/0.0007253, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009443/0.00167, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006955/0.0006955, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00108/0.001775, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9456/0.9456, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08166/1.027, allocations: 53.66 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo): time 0.1231/0.1231, allocations: 29.43 MB / 273.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1356/0.2587, allocations: 9.537 MB / 283 MB, free: 12.84 MB / 282.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-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.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 284.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.099e-05, allocations: 9.062 kB / 284.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008843/0.008864, allocations: 4.899 MB / 289.1 MB, free: 8.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.01436, allocations: 1.606 MB / 290.7 MB, free: 6.836 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.01461, allocations: 28.22 kB / 290.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002552/0.01487, allocations: 121.5 kB / 290.9 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005829/0.01545, allocations: 319.1 kB / 291.2 MB, free: 6.465 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.01585, allocations: 149.4 kB / 291.3 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009422/0.01679, allocations: 0.7169 MB / 292.1 MB, free: 5.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.01723, allocations: 351 kB / 292.4 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000595/0.01782, allocations: 435.4 kB / 292.8 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.01819, allocations: 252.4 kB / 293.1 MB, free: 5.301 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.646e-05/0.01827, allocations: 45.94 kB / 293.1 MB, free: 5.301 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.568e-05/0.01837, allocations: 45.16 kB / 293.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.01849, allocations: 135.5 kB / 293.3 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.01868, allocations: 152.7 kB / 293.4 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.01918, allocations: 367.8 kB / 293.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.9e-05/0.0192, allocations: 0 / 293.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.0192, allocations: 3.781 kB / 293.8 MB, free: 5.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.01923, allocations: 0 / 293.8 MB, free: 5.051 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001021/0.02025, allocations: 0.7831 MB / 294.6 MB, free: 4.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.02028, allocations: 8.031 kB / 294.6 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.849e-05/0.02037, allocations: 68.88 kB / 294.7 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.02085, allocations: 358.2 kB / 295 MB, free: 3.965 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-05/0.02094, allocations: 92.95 kB / 295.1 MB, free: 3.863 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.02099, allocations: 52.11 kB / 295.2 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.02137, allocations: 372.3 kB / 295.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.02139, allocations: 4 kB / 295.5 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.02141, allocations: 20 kB / 295.5 MB, free: 3.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.02142, allocations: 8 kB / 295.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.0216, allocations: 129.6 kB / 295.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.02293, allocations: 1.57 MB / 297.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.02312, allocations: 198.6 kB / 297.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.236e-05/0.02317, allocations: 46.69 kB / 297.5 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.02319, allocations: 4 kB / 297.5 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.02322, allocations: 46.5 kB / 297.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 1.853e-06/0.02322, allocations: 0 / 297.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006329/0.02385, allocations: 413.8 kB / 297.9 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.02389, allocations: 110.8 kB / 298 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.02406, allocations: 286.8 kB / 298.3 MB, free: 400 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.02407, allocations: 33.64 kB / 298.4 MB, free: 360 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/0.02417, allocations: 256.9 kB / 298.6 MB, free: 100 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.02422, allocations: 83.25 kB / 298.7 MB, free: 16 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.569e-05/0.02429, allocations: 69.66 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.02437, allocations: 342.8 kB / 299.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.225e-05/0.02442, allocations: 30.81 kB / 299.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.736e-05/0.02451, allocations: 173.6 kB / 299.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.02475, allocations: 285.9 kB / 299.6 MB, free: 15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.02475, allocations: 0 / 299.6 MB, free: 15 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003137/0.02507, allocations: 266.5 kB / 299.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.02508, allocations: 8 kB / 299.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.02509, allocations: 7.984 kB / 299.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.02529, allocations: 75.81 kB / 299.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.02543, allocations: 71.84 kB / 300 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.02649, allocations: 1.617 MB / 301.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.02659, allocations: 20.03 kB / 301.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.02661, allocations: 8 kB / 301.6 MB, free: 12.82 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.02671, allocations: 145.5 kB / 301.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.02675, allocations: 23.92 kB / 301.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.02679, allocations: 39.11 kB / 301.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.0268, allocations: 7.984 kB / 301.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.0268, allocations: 3.938 kB / 301.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.02681, allocations: 7.984 kB / 301.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.02726, allocations: 444 kB / 302.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.02727, allocations: 4 kB / 302.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.0274, allocations: 51.91 kB / 302.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.02744, allocations: 31.8 kB / 302.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.476e-05/0.0275, allocations: 12.86 kB / 302.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.02751, allocations: 8 kB / 302.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004912/0.028, allocations: 1.17 MB / 303.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.028, allocations: 4.141 kB / 303.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.02826, allocations: 395.1 kB / 304 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.02828, allocations: 8 kB / 304 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.458e-05/0.02836, allocations: 8 kB / 304 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.02841, allocations: 24.02 kB / 304 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.02841, allocations: 8 kB / 304 MB, free: 10.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.02849, allocations: 100.6 kB / 304.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02849, allocations: 0 / 304.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000287/0.02877, allocations: 88 kB / 304.2 MB, free: 10.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.749e-05/0.02886, allocations: 88.34 kB / 304.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.02916, allocations: 287.3 kB / 304.6 MB, free: 9.723 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/0.02918, allocations: 8 kB / 304.6 MB, free: 9.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.0293, allocations: 175.4 kB / 304.7 MB, free: 9.527 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.02965, allocations: 126 kB / 304.9 MB, free: 9.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007309/0.03696, allocations: 0.8728 MB / 305.7 MB, free: 8.492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.974e-05/0.03705, allocations: 137.2 kB / 305.9 MB, free: 8.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.03718, allocations: 43.27 kB / 305.9 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.03731, allocations: 123.3 kB / 306 MB, free: 8.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.242e-06/0.03731, allocations: 0 / 306 MB, free: 8.18 MB / 298.7 MB Notification: Performance of Templates: time 0.00724/0.04455, allocations: 4.54 MB / 310.6 MB, free: 3.75 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.8958281567320228]