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.0007469/0.0007469, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009888/0.001736, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006993/0.0006993, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009626/0.001662, allocations: 479.5 kB / 11.82 MB, free: 2.344 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 1.005/1.005, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08904/1.094, allocations: 53.66 MB / 243.4 MB, free: 15.51 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.1146/0.1146, allocations: 29.45 MB / 273.6 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1453/0.2599, allocations: 9.528 MB / 283.1 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.222e-06/1.222e-06, allocations: 0 / 284.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.762e-05/1.884e-05, allocations: 4.906 kB / 284.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005114/0.005133, allocations: 4.911 MB / 289.4 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.007353, allocations: 1.61 MB / 291 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.007614, allocations: 28.03 kB / 291 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.007888, allocations: 121.6 kB / 291.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005785/0.008467, allocations: 314.7 kB / 291.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.008786, allocations: 149.5 kB / 291.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007506/0.009537, allocations: 0.7122 MB / 292.3 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004053/0.009942, allocations: 357.2 kB / 292.6 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005814/0.01052, allocations: 441.8 kB / 293.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003639/0.01089, allocations: 244.4 kB / 293.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-05/0.01095, allocations: 45.5 kB / 293.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.011e-05/0.01104, allocations: 46.25 kB / 293.4 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.01116, allocations: 139.3 kB / 293.5 MB, free: 5.188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.01132, allocations: 157.6 kB / 293.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000375/0.0117, allocations: 362.3 kB / 294 MB, free: 4.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.01171, allocations: 1.312 kB / 294 MB, free: 4.984 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01171, allocations: 4 kB / 294 MB, free: 4.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.01173, allocations: 0 / 294 MB, free: 4.98 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.0008435/0.01257, allocations: 0.7844 MB / 294.8 MB, free: 4.297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.808e-05/0.0126, allocations: 8.031 kB / 294.8 MB, free: 4.289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.615e-05/0.01269, allocations: 72.88 kB / 294.9 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005939/0.01328, allocations: 354.3 kB / 295.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.962e-05/0.01336, allocations: 92.95 kB / 295.3 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.01341, allocations: 44.12 kB / 295.4 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.01381, allocations: 372.4 kB / 295.7 MB, free: 3.297 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.01383, allocations: 7.938 kB / 295.8 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.01385, allocations: 20 kB / 295.8 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.01386, allocations: 12 kB / 295.8 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.01402, allocations: 137.6 kB / 295.9 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.01529, allocations: 1.562 MB / 297.5 MB, free: 1.477 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.01548, allocations: 194.4 kB / 297.7 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.77e-05/0.01553, allocations: 54.5 kB / 297.7 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.01554, allocations: 8 kB / 297.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.01557, allocations: 38.56 kB / 297.8 MB, free: 1.141 MB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.01557, allocations: 3.938 kB / 297.8 MB, free: 1.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006324/0.0162, allocations: 414.9 kB / 298.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.01625, allocations: 110.8 kB / 298.3 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.0164, allocations: 291 kB / 298.6 MB, free: 276 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.01642, allocations: 33.7 kB / 298.6 MB, free: 236 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.01652, allocations: 252.8 kB / 298.8 MB, free: 15.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.503e-05/0.01657, allocations: 87.23 kB / 298.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.768e-05/0.01665, allocations: 61.62 kB / 299 MB, free: 15.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.01673, allocations: 350.7 kB / 299.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.172e-05/0.01677, allocations: 30.81 kB / 299.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.282e-05/0.01687, allocations: 169.6 kB / 299.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.01711, allocations: 300.3 kB / 299.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.01712, allocations: 7.984 kB / 299.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003047/0.01742, allocations: 261.3 kB / 300.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.01744, allocations: 8 kB / 300.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.01744, allocations: 4 kB / 300.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/0.01765, allocations: 75.91 kB / 300.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.01779, allocations: 75.91 kB / 300.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.01904, allocations: 1.61 MB / 301.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.01914, allocations: 12 kB / 301.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.01916, allocations: 16 kB / 301.9 MB, free: 12.7 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.0001015/0.01926, allocations: 136.5 kB / 302 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.0193, allocations: 27.92 kB / 302 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.612e-05/0.01934, allocations: 39.09 kB / 302.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.01934, allocations: 4 kB / 302.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.01934, allocations: 3.984 kB / 302.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01935, allocations: 0 / 302.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.01982, allocations: 460 kB / 302.5 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01982, allocations: 0 / 302.5 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.01996, allocations: 47.91 kB / 302.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.02001, allocations: 35.8 kB / 302.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-05/0.02008, allocations: 16.86 kB / 302.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.02009, allocations: 7.984 kB / 302.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005322/0.02062, allocations: 1.17 MB / 303.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02063, allocations: 160 / 303.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.02088, allocations: 398.9 kB / 304.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.0209, allocations: 8 kB / 304.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.02099, allocations: 8.125 kB / 304.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.02103, allocations: 23.89 kB / 304.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.02104, allocations: 12 kB / 304.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.173e-05/0.02111, allocations: 100.6 kB / 304.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02111, allocations: 0 / 304.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002919/0.02141, allocations: 88 kB / 304.4 MB, free: 9.984 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 0.0001057/0.02151, allocations: 80.36 kB / 304.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003167/0.02183, allocations: 299.1 kB / 304.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/0.02184, allocations: 8 kB / 304.8 MB, free: 9.578 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.022, allocations: 191.8 kB / 305 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.02256, allocations: 0.7686 MB / 305.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007202/0.02976, allocations: 0.8788 MB / 306.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.307e-05/0.02985, allocations: 129.2 kB / 306.8 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.03, allocations: 43.27 kB / 306.8 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.03014, allocations: 115.3 kB / 306.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of SimCode: time 1.743e-06/0.03014, allocations: 0 / 306.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of Templates: time 0.007362/0.0375, allocations: 4.469 MB / 311.4 MB, free: 2.883 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.930495982989669]