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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001209, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 92.42 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.346e-05/1.347e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 50.43 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4604, allocations: 109.2 MB / 496.7 MB, free: 1.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4607, allocations: 83.95 kB / 496.8 MB, free: 1.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1388/0.5995, allocations: 51.79 MB / 0.5357 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5996, allocations: 3.938 kB / 0.5357 GB, free: 13.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001788/0.5998, allocations: 59.94 kB / 0.5358 GB, free: 13.29 MB / 426.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.005639/0.6054, allocations: 2.436 MB / 0.5382 GB, free: 10.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.6055, allocations: 8.031 kB / 0.5382 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.6065, allocations: 332.3 kB / 0.5385 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003513/0.6101, allocations: 1.76 MB / 0.5402 GB, free: 8.637 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-05/0.6101, allocations: 68 kB / 0.5403 GB, free: 8.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.6104, allocations: 123.9 kB / 0.5404 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003399/0.6138, allocations: 1.941 MB / 0.5423 GB, free: 6.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003756/0.6176, allocations: 2.299 MB / 0.5445 GB, free: 4.078 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.157e-05/0.6177, allocations: 3.906 kB / 0.5445 GB, free: 4.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.6179, allocations: 8 kB / 0.5445 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.019e-05/0.618, allocations: 95.81 kB / 0.5446 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2283/0.8463, allocations: 7.923 MB / 0.5524 GB, free: 103.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.8487, allocations: 1.535 MB / 0.5539 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.8498, allocations: 0.8596 MB / 0.5547 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002924/0.8501, allocations: 142.3 kB / 0.5548 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.8502, allocations: 48.41 kB / 0.5549 GB, free: 103.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.566e-06/0.8502, allocations: 0 / 0.5549 GB, free: 103.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=135): time 0.008949/0.8591, allocations: 4.801 MB / 0.5596 GB, free: 102.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.8592, allocations: 65.78 kB / 0.5596 GB, free: 102.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002634/0.8618, allocations: 1.656 MB / 0.5612 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.862, allocations: 25.7 kB / 0.5613 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006934/0.8627, allocations: 1.113 MB / 0.5624 GB, free: 102.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003527/0.863, allocations: 445.8 kB / 0.5628 GB, free: 102 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-05/0.8631, allocations: 0 / 0.5628 GB, free: 102 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.138e-05/0.8632, allocations: 362.4 kB / 0.5631 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009483/0.8642, allocations: 0.6849 MB / 0.5638 GB, free: 101.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.8652, allocations: 0.9272 MB / 0.5647 GB, free: 101.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.8664, allocations: 0.8189 MB / 0.5655 GB, free: 101.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.8664, allocations: 1.969 kB / 0.5655 GB, free: 101.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00462/0.8711, allocations: 2.572 MB / 0.568 GB, free: 101.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.8711, allocations: 7.594 kB / 0.568 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/0.8712, allocations: 8.984 kB / 0.568 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/0.8733, allocations: 0.8289 MB / 0.5688 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.8744, allocations: 276.9 kB / 0.5691 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009143/0.8836, allocations: 8.891 MB / 0.5778 GB, free: 97.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.8851, allocations: 72.34 kB / 0.5779 GB, free: 97.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.8852, allocations: 53.11 kB / 0.5779 GB, free: 97 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002577/0.8855, allocations: 125.1 kB / 0.578 GB, free: 96.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003106/0.8858, allocations: 197.6 kB / 0.5782 GB, free: 96.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.8893, allocations: 2.343 MB / 0.5805 GB, free: 95.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.8893, allocations: 11.62 kB / 0.5805 GB, free: 95.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.8894, allocations: 11.8 kB / 0.5805 GB, free: 95.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.8894, allocations: 10.08 kB / 0.5805 GB, free: 95.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006757/0.8961, allocations: 4.602 MB / 0.585 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.8962, allocations: 3.781 kB / 0.585 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009509/0.8971, allocations: 221.7 kB / 0.5852 GB, free: 94.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.8987, allocations: 0.6933 MB / 0.5859 GB, free: 93.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.001e-05/0.8988, allocations: 17.77 kB / 0.5859 GB, free: 93.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006824/0.9056, allocations: 8.141 MB / 0.5939 GB, free: 88.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.9057, allocations: 0 / 0.5939 GB, free: 88.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.91, allocations: 3.436 MB / 0.5972 GB, free: 86.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008049/0.9108, allocations: 454.3 kB / 0.5977 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/0.9111, allocations: 15.7 kB / 0.5977 GB, free: 86.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008976/0.912, allocations: 71.19 kB / 0.5978 GB, free: 86.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.9122, allocations: 104.5 kB / 0.5979 GB, free: 86.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.9123, allocations: 38.86 kB / 0.5979 GB, free: 86.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001403/0.9137, allocations: 1.264 MB / 0.5991 GB, free: 86.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9137, allocations: 4.531 kB / 0.5991 GB, free: 86.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001749/0.9155, allocations: 0.5193 MB / 0.5996 GB, free: 86.07 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/0.9165, allocations: 0.5231 MB / 0.6002 GB, free: 85.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.9195, allocations: 2.287 MB / 0.6024 GB, free: 84.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9196, allocations: 0 / 0.6024 GB, free: 84.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.9215, allocations: 1.615 MB / 0.604 GB, free: 84.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.9232, allocations: 335.9 kB / 0.6043 GB, free: 83.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005692/0.9289, allocations: 4.169 MB / 0.6084 GB, free: 82.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.9301, allocations: 2.006 MB / 0.6103 GB, free: 81.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001109/0.9312, allocations: 381.9 kB / 0.6107 GB, free: 81.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.9315, allocations: 125 kB / 0.6108 GB, free: 81.34 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9315, allocations: 0 / 0.6108 GB, free: 81.34 MB / 426.7 MB Notification: Performance of Templates: time 0.03708/0.9686, allocations: 25.43 MB / 0.6356 GB, free: 67.22 MB / 426.7 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","../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