Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001411/0.001411, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001166/0.001166, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9473/0.9473, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.142e-05/1.251e-05, allocations: 2.312 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.007985/0.007997, allocations: 9.65 MB / 282.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005275/0.01327, allocations: 3.708 MB / 286.4 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007895/0.01406, allocations: 59.62 kB / 286.4 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.01532, allocations: 0.6674 MB / 287.1 MB, free: 3.355 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001838/0.01716, allocations: 0.9548 MB / 288.1 MB, free: 2.395 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007836/0.01794, allocations: 486.9 kB / 288.5 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.119/0.1369, allocations: 2.745 MB / 291.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.1383, allocations: 1.075 MB / 292.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002579/0.1409, allocations: 2.016 MB / 294.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002109/0.143, allocations: 1.346 MB / 295.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005967/0.1436, allocations: 295.6 kB / 296 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000898/0.1445, allocations: 0.5425 MB / 296.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006877/0.1452, allocations: 1.042 MB / 297.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.1463, allocations: 0.9671 MB / 298.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.1485, allocations: 2.474 MB / 301 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1485, allocations: 0 / 301 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1485, allocations: 0 / 301 MB, free: 14.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.789e-05/0.1486, allocations: 0.9375 kB / 301 MB, free: 14.66 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.003183/0.1518, allocations: 3.296 MB / 304.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.1518, allocations: 12.09 kB / 304.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007445/0.1526, allocations: 0.5204 MB / 304.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.1539, allocations: 1.576 MB / 306.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.704e-05/0.1539, allocations: 150.8 kB / 306.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.1541, allocations: 208.1 kB / 306.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.1559, allocations: 1.673 MB / 308.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.1559, allocations: 3.953 kB / 308.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.156, allocations: 84.25 kB / 308.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.048e-05/0.1561, allocations: 100 kB / 308.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.1573, allocations: 0.7523 MB / 309.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005326/0.1626, allocations: 6.617 MB / 316 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.1636, allocations: 0.7905 MB / 316.8 MB, free: 4.059 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006729/0.1643, allocations: 0.5767 MB / 317.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.1644, allocations: 53.47 kB / 317.4 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.1645, allocations: 50.39 kB / 317.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 2.063e-06/0.1645, allocations: 4 kB / 317.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of matching and sorting (n=132): time 0.00451/0.169, allocations: 3.566 MB / 321 MB, free: 15.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.169, allocations: 68.66 kB / 321.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.1706, allocations: 1.6 MB / 322.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.1707, allocations: 49.7 kB / 322.8 MB, free: 14.04 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005932/0.1713, allocations: 1.246 MB / 324 MB, free: 12.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/0.1715, allocations: 477.5 kB / 324.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.1718, allocations: 253.2 kB / 324.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1719, allocations: 0.5415 MB / 325.3 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003876/0.1723, allocations: 245.3 kB / 325.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/0.1728, allocations: 0.5895 MB / 326.1 MB, free: 10.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009518/0.1738, allocations: 0.9155 MB / 327 MB, free: 9.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1738, allocations: 4 kB / 327 MB, free: 9.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.001906/0.1757, allocations: 1.483 MB / 328.5 MB, free: 8.129 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1757, allocations: 12.25 kB / 328.5 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1757, allocations: 7.984 kB / 328.5 MB, free: 8.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.1771, allocations: 0.547 MB / 329.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.1776, allocations: 261.9 kB / 329.3 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.1822, allocations: 6.33 MB / 335.6 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004363/0.1826, allocations: 71.89 kB / 335.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.72e-05/0.1827, allocations: 55.98 kB / 335.8 MB, free: 0.6719 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (5,34,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003361/0.183, allocations: 229.2 kB / 336 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004872/0.1835, allocations: 242.7 kB / 336.2 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.1852, allocations: 1.293 MB / 337.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.1852, allocations: 16.66 kB / 337.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1852, allocations: 8 kB / 337.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.1852, allocations: 15.91 kB / 337.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.189, allocations: 3.183 MB / 340.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.189, allocations: 4 kB / 340.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004808/0.1895, allocations: 203.4 kB / 341 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009012/0.1904, allocations: 441.9 kB / 341.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.543e-05/0.1904, allocations: 39.81 kB / 341.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004545/0.195, allocations: 7.423 MB / 348.8 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.195, allocations: 4.031 kB / 348.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.1972, allocations: 1.754 MB / 350.6 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006894/0.1979, allocations: 318.6 kB / 350.9 MB, free: 1.148 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.198, allocations: 35.34 kB / 350.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003952/0.1984, allocations: 63.94 kB / 351 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.1986, allocations: 112.7 kB / 351.1 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-05/0.1986, allocations: 43.97 kB / 351.2 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008759/0.1995, allocations: 0.9355 MB / 352.1 MB, free: 15.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1995, allocations: 0 / 352.1 MB, free: 15.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001203/0.2007, allocations: 0.5039 MB / 352.6 MB, free: 15.47 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009233/0.2016, allocations: 451.6 kB / 353 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.2033, allocations: 1.475 MB / 354.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2033, allocations: 0 / 354.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.2044, allocations: 1.206 MB / 355.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.2054, allocations: 392.3 kB / 356.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.2103, allocations: 4.244 MB / 360.4 MB, free: 7.785 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.2108, allocations: 0.6512 MB / 361 MB, free: 7.105 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005143/0.2113, allocations: 281.2 kB / 361.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.2115, allocations: 112.5 kB / 361.4 MB, free: 6.715 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2115, allocations: 0 / 361.4 MB, free: 6.715 MB / 314.7 MB Notification: Performance of Templates: time 0.03288/0.2444, allocations: 28.22 MB / 389.6 MB, free: 10.88 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.225646853912622]