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.001345/0.001345, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001664/0.001664, allocations: 174.5 kB / 25.61 MB, free: 8.586 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 0.8894/0.8894, allocations: 177.1 MB / 206.1 MB, free: 4.473 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 2.264e-06/2.264e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.957e-05/3.183e-05, allocations: 2.312 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01046/0.01049, allocations: 9.385 MB / 283.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004788/0.01528, allocations: 3.673 MB / 287.3 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.01586, allocations: 59.62 kB / 287.4 MB, free: 7.285 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.017, allocations: 0.6636 MB / 288 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.01837, allocations: 0.9587 MB / 289 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.01903, allocations: 490.9 kB / 289.5 MB, free: 5.172 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.02093, allocations: 2.758 MB / 292.2 MB, free: 2.398 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009779/0.02191, allocations: 1.077 MB / 293.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001827/0.02373, allocations: 2.015 MB / 295.3 MB, free: 15.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.02515, allocations: 1.348 MB / 296.7 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000375/0.02553, allocations: 296 kB / 296.9 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007361/0.02626, allocations: 0.5462 MB / 297.5 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006337/0.0269, allocations: 1.04 MB / 298.5 MB, free: 12.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009174/0.02782, allocations: 0.9702 MB / 299.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00222/0.03004, allocations: 2.468 MB / 302 MB, free: 8.562 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.03004, allocations: 0 / 302 MB, free: 8.562 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.03004, allocations: 4 kB / 302 MB, free: 8.559 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.931e-05/0.03008, allocations: 0 / 302 MB, free: 8.559 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.003405/0.03349, allocations: 3.231 MB / 305.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.03352, allocations: 12.03 kB / 305.2 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008507/0.03437, allocations: 0.5262 MB / 305.7 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.03605, allocations: 1.489 MB / 307.2 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.486e-05/0.03615, allocations: 152.4 kB / 307.4 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002616/0.03641, allocations: 216 kB / 307.6 MB, free: 2.828 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.03869, allocations: 1.536 MB / 309.1 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.708e-05/0.03874, allocations: 3.953 kB / 309.1 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.0389, allocations: 83.94 kB / 309.2 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.039, allocations: 95.94 kB / 309.3 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.04015, allocations: 0.6082 MB / 309.9 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007672/0.04782, allocations: 6.07 MB / 316 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.04913, allocations: 0.7117 MB / 316.7 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008331/0.04996, allocations: 0.5177 MB / 317.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.0501, allocations: 48.98 kB / 317.3 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.05013, allocations: 50.38 kB / 317.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.05014, allocations: 0 / 317.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.005763/0.0559, allocations: 2.897 MB / 320.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.05594, allocations: 72.66 kB / 320.3 MB, free: 5.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.05742, allocations: 1.548 MB / 321.8 MB, free: 4.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.996e-05/0.05749, allocations: 45.7 kB / 321.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008172/0.05831, allocations: 1.274 MB / 323.1 MB, free: 2.855 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003366/0.05864, allocations: 495.8 kB / 323.6 MB, free: 2.367 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003622/0.05901, allocations: 253.1 kB / 323.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.05919, allocations: 0.5432 MB / 324.4 MB, free: 1.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.05953, allocations: 183.8 kB / 324.6 MB, free: 1.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005369/0.06007, allocations: 0.5389 MB / 325.1 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/0.06404, allocations: 0.8091 MB / 326 MB, free: 15.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.06404, allocations: 0 / 326 MB, free: 15.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.002137/0.06618, allocations: 1.327 MB / 327.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.0662, allocations: 10.03 kB / 327.3 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.06621, allocations: 8.609 kB / 327.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004376/0.07059, allocations: 0.5328 MB / 327.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006691/0.07126, allocations: 251.5 kB / 328.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.08262, allocations: 5.997 MB / 334.1 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006349/0.08325, allocations: 44.02 kB / 334.1 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.08335, allocations: 43.98 kB / 334.2 MB, free: 7.336 MB / 314.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.0004716/0.08382, allocations: 224.3 kB / 334.4 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003287/0.08415, allocations: 246.6 kB / 334.6 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.08899, allocations: 1.163 MB / 335.8 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.08901, allocations: 19.98 kB / 335.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.08902, allocations: 8 kB / 335.8 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.08903, allocations: 3.984 kB / 335.8 MB, free: 5.637 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00708/0.09611, allocations: 2.622 MB / 338.4 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.09612, allocations: 7.984 kB / 338.4 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/0.09972, allocations: 179.8 kB / 338.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.1008, allocations: 414.4 kB / 339 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.591e-05/0.1008, allocations: 39.98 kB / 339.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00781/0.1087, allocations: 7.204 MB / 346.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.1087, allocations: 7.938 kB / 346.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/0.1114, allocations: 1.593 MB / 347.9 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003647/0.1151, allocations: 294.7 kB / 348.2 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.1153, allocations: 27.98 kB / 348.2 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005491/0.1158, allocations: 47.97 kB / 348.2 MB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.1161, allocations: 104.8 kB / 348.3 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.306e-05/0.1161, allocations: 27.98 kB / 348.4 MB, free: 8.605 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009297/0.1171, allocations: 0.8564 MB / 349.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1171, allocations: 0 / 349.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004375/0.1214, allocations: 0.5116 MB / 349.7 MB, free: 7.246 MB / 330.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.001175/0.1226, allocations: 446.1 kB / 350.2 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.1246, allocations: 1.355 MB / 351.5 MB, free: 5.523 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.1246, allocations: 4.062 kB / 351.5 MB, free: 5.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.1258, allocations: 1.125 MB / 352.6 MB, free: 4.336 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.127, allocations: 400.9 kB / 353 MB, free: 3.953 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09979/0.2268, allocations: 4.189 MB / 357.2 MB, free: 70.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008919/0.2277, allocations: 0.6436 MB / 357.9 MB, free: 69.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007906/0.2285, allocations: 202.9 kB / 358.1 MB, free: 69.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007568/0.2293, allocations: 436.5 kB / 358.5 MB, free: 69.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2293, allocations: 0 / 358.5 MB, free: 69.88 MB / 330.7 MB Notification: Performance of Templates: time 0.03966/0.2689, allocations: 29.2 MB / 387.7 MB, free: 52.82 MB / 330.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.182758484967053]