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.001607/0.001607, allocations: 78.97 kB / 21.42 MB, free: 3.074 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.002157/0.002157, allocations: 148.3 kB / 24.8 MB, free: 9.336 MB / 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 0.9877/0.9877, allocations: 173.3 MB / 201.4 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|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.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|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 1.243e-06/1.243e-06, allocations: 0 / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.782e-05, allocations: 2.312 kB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01136/0.01139, allocations: 9.337 MB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007017/0.0184, allocations: 3.482 MB / 281.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.02023, allocations: 59.62 kB / 281.3 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001926/0.02216, allocations: 0.6597 MB / 282 MB, free: 8.578 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005805/0.02796, allocations: 0.912 MB / 282.9 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.02965, allocations: 475 kB / 283.4 MB, free: 7.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.03336, allocations: 2.727 MB / 286.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.03465, allocations: 1.077 MB / 287.2 MB, free: 3.316 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/0.03763, allocations: 2.015 MB / 289.2 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1217/0.1593, allocations: 1.333 MB / 290.5 MB, free: 17.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.1604, allocations: 295.9 kB / 290.8 MB, free: 17.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.1619, allocations: 0.5431 MB / 291.3 MB, free: 17.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.163, allocations: 1.034 MB / 292.4 MB, free: 17.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0019/0.1649, allocations: 0.9693 MB / 293.4 MB, free: 17.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003503/0.1684, allocations: 2.455 MB / 295.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1684, allocations: 2.25 kB / 295.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1684, allocations: 0 / 295.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001166/0.1685, allocations: 1.188 kB / 295.8 MB, free: 17.2 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.005242/0.1738, allocations: 3.219 MB / 299 MB, free: 15.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1738, allocations: 10.45 kB / 299 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000838/0.1747, allocations: 0.4934 MB / 299.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.1765, allocations: 1.468 MB / 301 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.1766, allocations: 153.9 kB / 301.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.1769, allocations: 208 kB / 301.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002134/0.179, allocations: 1.538 MB / 302.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/0.1791, allocations: 10.64 kB / 302.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.1792, allocations: 83.22 kB / 303 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.394e-05/0.1793, allocations: 97.12 kB / 303.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009911/0.1803, allocations: 0.6089 MB / 303.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006284/0.1866, allocations: 6.074 MB / 309.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/0.1875, allocations: 0.7154 MB / 310.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005552/0.188, allocations: 0.5072 MB / 311 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.1882, allocations: 50.75 kB / 311 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.1882, allocations: 45.95 kB / 311.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 2.745e-06/0.1882, allocations: 4 kB / 311.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=132): time 0.004633/0.1928, allocations: 2.899 MB / 314 MB, free: 10.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.1929, allocations: 65.75 kB / 314 MB, free: 10.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.194, allocations: 1.525 MB / 315.6 MB, free: 9.012 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.1941, allocations: 45.7 kB / 315.6 MB, free: 8.961 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.1946, allocations: 1.263 MB / 316.9 MB, free: 7.758 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002583/0.1948, allocations: 496.9 kB / 317.4 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.1951, allocations: 251.2 kB / 317.6 MB, free: 7.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1952, allocations: 0.5451 MB / 318.2 MB, free: 6.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.1954, allocations: 186.7 kB / 318.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.1958, allocations: 0.5333 MB / 318.9 MB, free: 5.742 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/0.1965, allocations: 0.805 MB / 319.7 MB, free: 4.871 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.1965, allocations: 5.031 kB / 319.7 MB, free: 4.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.001912/0.1984, allocations: 1.329 MB / 321 MB, free: 3.594 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.1985, allocations: 8 kB / 321 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.1985, allocations: 8 kB / 321 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.1997, allocations: 0.5344 MB / 321.6 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005006/0.2002, allocations: 238.2 kB / 321.8 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004821/0.205, allocations: 6.007 MB / 327.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008948/0.2059, allocations: 43.98 kB / 327.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-05/0.2059, allocations: 45.05 kB / 327.9 MB, free: 12.63 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.000874/0.2068, allocations: 226 kB / 328.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.2072, allocations: 242.5 kB / 328.3 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.2087, allocations: 1.172 MB / 329.5 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.2087, allocations: 23.38 kB / 329.5 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.2087, allocations: 4 kB / 329.5 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.2087, allocations: 3.984 kB / 329.5 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.2124, allocations: 2.609 MB / 332.2 MB, free: 8.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.2124, allocations: 4 kB / 332.2 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004486/0.2129, allocations: 181.5 kB / 332.3 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008268/0.2137, allocations: 421.3 kB / 332.7 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.461e-05/0.2138, allocations: 39.97 kB / 332.8 MB, free: 7.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.218, allocations: 7.212 MB / 340 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.218, allocations: 0 / 340 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.2205, allocations: 1.587 MB / 341.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000594/0.2211, allocations: 285.1 kB / 341.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.2212, allocations: 39.92 kB / 341.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.2216, allocations: 43.98 kB / 341.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.2218, allocations: 108.8 kB / 342.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-05/0.2219, allocations: 31.98 kB / 342.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009038/0.2228, allocations: 0.846 MB / 342.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2228, allocations: 3.469 kB / 342.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001637/0.2244, allocations: 0.5039 MB / 343.4 MB, free: 13.09 MB / 298.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.001051/0.2255, allocations: 448.8 kB / 343.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.2273, allocations: 1.358 MB / 345.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.2273, allocations: 4 kB / 345.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.2285, allocations: 1.122 MB / 346.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.2299, allocations: 399.5 kB / 346.7 MB, free: 9.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00736/0.2373, allocations: 4.177 MB / 350.9 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.2379, allocations: 0.644 MB / 351.6 MB, free: 5.043 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0008916/0.2388, allocations: 209.3 kB / 351.8 MB, free: 4.832 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006823/0.2395, allocations: 433.9 kB / 352.2 MB, free: 4.406 MB / 298.7 MB Notification: Performance of SimCode: time 2.534e-06/0.2395, allocations: 0 / 352.2 MB, free: 4.406 MB / 298.7 MB Notification: Performance of Templates: time 0.04074/0.2802, allocations: 28.6 MB / 380.8 MB, free: 8.238 MB / 330.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] 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","",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.157412515953183]