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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=100000,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=100000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 87.7 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 180.8 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.2 MB / 241.2 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003169, allocations: 7.156 kB / 300.8 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 50.42 MB / 351.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01065/0.1376, allocations: 8.522 MB / 359.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007845/0.1455, allocations: 3.368 MB / 363.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002066/0.1476, allocations: 43.81 kB / 363.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002026/0.1497, allocations: 0.536 MB / 363.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003062/0.1528, allocations: 0.6993 MB / 364.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.1542, allocations: 331.4 kB / 364.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004465/0.1587, allocations: 2.704 MB / 367.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002938/0.1616, allocations: 1.319 MB / 368.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.1641, allocations: 0.9143 MB / 369.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003082/0.1672, allocations: 1.319 MB / 371 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007739/0.168, allocations: 136 kB / 371.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.1697, allocations: 351.6 kB / 371.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.1712, allocations: 0.7827 MB / 372.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.1723, allocations: 0.5119 MB / 372.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005231/0.1776, allocations: 3.385 MB / 376.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.1776, allocations: 4 kB / 376.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.1776, allocations: 0 / 376.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1778, allocations: 4 kB / 376.2 MB, free: 2.66 MB / 302.1 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.007768/0.1856, allocations: 2.73 MB / 378.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.1857, allocations: 8.031 kB / 378.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.187, allocations: 328.3 kB / 379.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.1904, allocations: 1.576 MB / 380.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.1905, allocations: 152 kB / 380.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.1908, allocations: 207.9 kB / 381.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005498/0.1963, allocations: 2.698 MB / 383.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.679e-05/0.1964, allocations: 7.984 kB / 383.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002012/0.1966, allocations: 80 kB / 383.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.1968, allocations: 91.94 kB / 384 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004687/0.2015, allocations: 2.295 MB / 386.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.2166, allocations: 8.286 MB / 394.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.2197, allocations: 1.628 MB / 396.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.2216, allocations: 1.102 MB / 397.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.2219, allocations: 122.1 kB / 397.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.2219, allocations: 51.5 kB / 397.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 4.959e-06/0.2219, allocations: 4 kB / 397.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.01329/0.2352, allocations: 6.491 MB / 404 MB, free: 6.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.2353, allocations: 72.72 kB / 404.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/0.2385, allocations: 2.137 MB / 406.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.2386, allocations: 45.7 kB / 406.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009148/0.2395, allocations: 1.108 MB / 407.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004144/0.24, allocations: 457.4 kB / 407.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.967e-05/0.2401, allocations: 24 kB / 407.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2403, allocations: 361.9 kB / 408.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.2416, allocations: 0.7652 MB / 408.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.243, allocations: 1.021 MB / 410 MB, free: 32 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.2446, allocations: 0.9003 MB / 410.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.2446, allocations: 4 kB / 410.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005146/0.2497, allocations: 2.777 MB / 413.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.2498, allocations: 11.98 kB / 413.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.2498, allocations: 8 kB / 413.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.2517, allocations: 0.7775 MB / 414.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.2528, allocations: 279.6 kB / 414.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.2636, allocations: 8.75 MB / 423.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.265, allocations: 95.89 kB / 423.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.2651, allocations: 52.06 kB / 423.6 MB, free: 2.086 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001407/0.2665, allocations: 0.7471 MB / 424.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004018/0.267, allocations: 201.5 kB / 424.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2439/0.5109, allocations: 2.503 MB / 427.1 MB, free: 62.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.163e-05/0.511, allocations: 15.41 kB / 427.1 MB, free: 62.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.511, allocations: 5.781 kB / 427.1 MB, free: 62.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.636e-05/0.511, allocations: 11.14 kB / 427.1 MB, free: 62.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.521, allocations: 4.959 MB / 432 MB, free: 62.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.5211, allocations: 2.5 kB / 432 MB, free: 62.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5221, allocations: 220.9 kB / 432.3 MB, free: 62.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.524, allocations: 0.6485 MB / 432.9 MB, free: 62.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.5241, allocations: 36.47 kB / 432.9 MB, free: 62.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/0.5329, allocations: 7.912 MB / 440.9 MB, free: 58.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.533, allocations: 2.156 kB / 440.9 MB, free: 58.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005925/0.5389, allocations: 3.562 MB / 444.4 MB, free: 57.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009355/0.5399, allocations: 449.4 kB / 444.9 MB, free: 57.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.5401, allocations: 27.64 kB / 444.9 MB, free: 57.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008411/0.541, allocations: 94.91 kB / 445 MB, free: 57.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/0.5413, allocations: 103.2 kB / 445.1 MB, free: 57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.454e-05/0.5414, allocations: 39.11 kB / 445.1 MB, free: 57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002139/0.5435, allocations: 1.516 MB / 446.6 MB, free: 56.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5435, allocations: 0 / 446.6 MB, free: 56.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001945/0.5455, allocations: 0.5217 MB / 447.2 MB, free: 56.38 MB / 350.1 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/0.5466, allocations: 424.2 kB / 447.6 MB, free: 56.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003813/0.5504, allocations: 2.403 MB / 450 MB, free: 54.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5504, allocations: 0 / 450 MB, free: 54.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.5526, allocations: 1.612 MB / 451.6 MB, free: 53.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.5544, allocations: 432.1 kB / 452 MB, free: 53.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007263/0.5617, allocations: 6.01 MB / 458 MB, free: 47.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.5629, allocations: 1.951 MB / 460 MB, free: 45.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001192/0.5641, allocations: 391.6 kB / 460.3 MB, free: 45.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.5645, allocations: 127.4 kB / 460.5 MB, free: 45.1 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5645, allocations: 0 / 460.5 MB, free: 45.1 MB / 350.1 MB Notification: Performance of Templates: time 0.04069/0.6052, allocations: 27.68 MB / 488.2 MB, free: 17.64 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (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) 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) Reference file matches