Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002159/0.002159, allocations: 149.4 kB / 24.25 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.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.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 267.4 MB, free: 6.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/3.158e-05, allocations: 9.969 kB / 267.4 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01718/0.01721, allocations: 8.586 MB / 276 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.02776, allocations: 3.366 MB / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.03049, allocations: 59.62 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003428/0.03392, allocations: 0.652 MB / 280 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005365/0.03928, allocations: 0.9199 MB / 280.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.04157, allocations: 475 kB / 281.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006179/0.04775, allocations: 2.731 MB / 284.1 MB, free: 5.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003261/0.05101, allocations: 1.069 MB / 285.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005844/0.05686, allocations: 1.754 MB / 287 MB, free: 2.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004619/0.06148, allocations: 1.309 MB / 288.3 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001561/0.06304, allocations: 308 kB / 288.6 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.06597, allocations: 0.5501 MB / 289.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1386/0.2046, allocations: 1.065 MB / 290.2 MB, free: 18.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002517/0.2071, allocations: 0.9957 MB / 291.2 MB, free: 18.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006318/0.2134, allocations: 4.322 MB / 295.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2134, allocations: 0 / 295.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2134, allocations: 1.062 kB / 295.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001127/0.2135, allocations: 0 / 295.5 MB, free: 18.43 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.006884/0.2204, allocations: 3.136 MB / 298.6 MB, free: 17.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2204, allocations: 9.328 kB / 298.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.2216, allocations: 0.4957 MB / 299.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.2245, allocations: 1.693 MB / 300.8 MB, free: 16.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.2246, allocations: 149 kB / 301 MB, free: 16.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003324/0.2249, allocations: 213.6 kB / 301.2 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004637/0.2295, allocations: 2.797 MB / 304 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.724e-05/0.2296, allocations: 6.688 kB / 304 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.2298, allocations: 80.5 kB / 304.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.2299, allocations: 96.55 kB / 304.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003677/0.2336, allocations: 2.28 MB / 306.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/0.2449, allocations: 7.175 MB / 313.6 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/0.2473, allocations: 1.324 MB / 315 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.249, allocations: 1.018 MB / 316 MB, free: 7.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002134/0.2492, allocations: 48.97 kB / 316 MB, free: 7.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.2492, allocations: 47.55 kB / 316.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.456e-06/0.2492, allocations: 4 kB / 316.1 MB, free: 7.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=132): time 0.01179/0.261, allocations: 6.128 MB / 322.2 MB, free: 1.531 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.642e-05/0.261, allocations: 64.72 kB / 322.3 MB, free: 1.457 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.2636, allocations: 2.025 MB / 324.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001462/0.2638, allocations: 49.7 kB / 324.3 MB, free: 15.37 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.2649, allocations: 1.127 MB / 325.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005616/0.2655, allocations: 479.7 kB / 325.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005206/0.266, allocations: 239.6 kB / 326.2 MB, free: 13.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.2662, allocations: 353.9 kB / 326.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.2678, allocations: 0.7574 MB / 327.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.2696, allocations: 1.013 MB / 328.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003507/0.2731, allocations: 1.862 MB / 330.1 MB, free: 9.395 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.2732, allocations: 0 / 330.1 MB, free: 9.395 MB / 282.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006488/0.2796, allocations: 2.802 MB / 332.9 MB, free: 6.645 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.2797, allocations: 12.19 kB / 333 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.2797, allocations: 8 kB / 333 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003096/0.2828, allocations: 0.9666 MB / 333.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.2841, allocations: 277.7 kB / 334.2 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/0.2986, allocations: 9.286 MB / 343.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.3003, allocations: 87.89 kB / 343.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.3005, allocations: 60.05 kB / 343.6 MB, free: 11.82 MB / 298.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%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00167/0.3021, allocations: 0.7453 MB / 344.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006832/0.3028, allocations: 241.9 kB / 344.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/0.3082, allocations: 2.467 MB / 347.1 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.631e-05/0.3082, allocations: 16 kB / 347.1 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.3082, allocations: 4 kB / 347.1 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.3083, allocations: 7.969 kB / 347.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009657/0.3179, allocations: 4.373 MB / 351.5 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3179, allocations: 0 / 351.5 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.319, allocations: 217.9 kB / 351.7 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/0.3214, allocations: 0.7317 MB / 352.4 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.3216, allocations: 31.98 kB / 352.5 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.3329, allocations: 8.293 MB / 360.7 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.333, allocations: 2.844 kB / 360.7 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00749/0.3404, allocations: 3.56 MB / 364.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.3416, allocations: 354.6 kB / 364.7 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002747/0.3419, allocations: 31.98 kB / 364.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009952/0.3429, allocations: 83.91 kB / 364.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.3432, allocations: 108.8 kB / 364.9 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.3434, allocations: 35.98 kB / 364.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002401/0.3458, allocations: 1.41 MB / 366.3 MB, free: 4.852 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3458, allocations: 0 / 366.3 MB, free: 4.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002139/0.3479, allocations: 0.5231 MB / 366.8 MB, free: 4.332 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.002025/0.3499, allocations: 0.4934 MB / 367.3 MB, free: 4.027 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004948/0.3549, allocations: 2.308 MB / 369.6 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3549, allocations: 0 / 369.6 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002968/0.3578, allocations: 1.454 MB / 371.1 MB, free: 260 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.3602, allocations: 405.3 kB / 371.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.3719, allocations: 5.085 MB / 376.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/0.3739, allocations: 1.379 MB / 378 MB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001476/0.3754, allocations: 378.5 kB / 378.3 MB, free: 8.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004449/0.3758, allocations: 124.5 kB / 378.5 MB, free: 8.812 MB / 330.7 MB Notification: Performance of SimCode: time 2.124e-06/0.3758, allocations: 0 / 378.5 MB, free: 8.812 MB / 330.7 MB Notification: Performance of Templates: time 0.05805/0.4339, allocations: 29.48 MB / 407.9 MB, free: 11.7 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.548420356004499]