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.001078/0.001078, allocations: 179.7 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000916/0.0009161, allocations: 96.52 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 7.938 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2465, allocations: 50.41 MB / 401.5 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.3716, allocations: 110 MB / 0.4995 GB, free: 2.418 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.3719, allocations: 95.94 kB / 0.4996 GB, free: 2.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2968/0.6687, allocations: 52.36 MB / 0.5507 GB, free: 63.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6688, allocations: 0 / 0.5507 GB, free: 63.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001566/0.6689, allocations: 63.94 kB / 0.5508 GB, free: 63.85 MB / 378.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.004744/0.6737, allocations: 2.772 MB / 0.5535 GB, free: 61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.6737, allocations: 8.031 kB / 0.5535 GB, free: 61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007973/0.6745, allocations: 332.3 kB / 0.5538 GB, free: 60.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.6778, allocations: 1.771 MB / 0.5555 GB, free: 58.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.6779, allocations: 156 kB / 0.5557 GB, free: 58.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/0.6782, allocations: 211.9 kB / 0.5559 GB, free: 58.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003579/0.6818, allocations: 2.674 MB / 0.5585 GB, free: 55.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.393e-05/0.6818, allocations: 3.906 kB / 0.5585 GB, free: 55.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.682, allocations: 84 kB / 0.5586 GB, free: 55.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-05/0.6821, allocations: 91.92 kB / 0.5587 GB, free: 55.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003071/0.6852, allocations: 2.182 MB / 0.5608 GB, free: 53.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01061/0.6958, allocations: 8.326 MB / 0.5689 GB, free: 44.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.6984, allocations: 1.679 MB / 0.5706 GB, free: 43.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.6987, allocations: 142 kB / 0.5707 GB, free: 42.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.6987, allocations: 51.5 kB / 0.5707 GB, free: 42.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.777e-06/0.6987, allocations: 0 / 0.5707 GB, free: 42.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.01196/0.7107, allocations: 6.728 MB / 0.5773 GB, free: 35.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.7108, allocations: 64.72 kB / 0.5774 GB, free: 35.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.7133, allocations: 1.885 MB / 0.5792 GB, free: 33.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.7135, allocations: 49.7 kB / 0.5793 GB, free: 33.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005925/0.7141, allocations: 1.099 MB / 0.5803 GB, free: 32.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000346/0.7145, allocations: 473.1 kB / 0.5808 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.22e-05/0.7146, allocations: 28 kB / 0.5808 GB, free: 32.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.81e-05/0.7147, allocations: 369.8 kB / 0.5812 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.7158, allocations: 0.7691 MB / 0.5819 GB, free: 31.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.717, allocations: 1.013 MB / 0.5829 GB, free: 30.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.7182, allocations: 0.912 MB / 0.5838 GB, free: 29.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/0.7183, allocations: 4 kB / 0.5838 GB, free: 29.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004679/0.7229, allocations: 2.824 MB / 0.5866 GB, free: 26.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.723, allocations: 15.06 kB / 0.5866 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/0.723, allocations: 8 kB / 0.5866 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.7249, allocations: 0.8414 MB / 0.5874 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.726, allocations: 275.5 kB / 0.5877 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009531/0.7355, allocations: 9.638 MB / 0.5971 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.737, allocations: 95.89 kB / 0.5972 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.7371, allocations: 56.36 kB / 0.5972 GB, free: 15.1 MB / 378.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 (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.001305/0.7384, allocations: 0.7498 MB / 0.598 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000349/0.7388, allocations: 205.5 kB / 0.5981 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003811/0.7426, allocations: 2.587 MB / 0.6007 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.7426, allocations: 15.95 kB / 0.6007 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.7426, allocations: 15.98 kB / 0.6007 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.7427, allocations: 3.984 kB / 0.6007 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007379/0.75, allocations: 5.092 MB / 0.6057 GB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.7501, allocations: 0 / 0.6057 GB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.751, allocations: 219.7 kB / 0.6059 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001597/0.7526, allocations: 0.7067 MB / 0.6066 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.88e-05/0.7527, allocations: 39.97 kB / 0.6066 GB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008126/0.7609, allocations: 8.684 MB / 0.6151 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.7609, allocations: 7.984 kB / 0.6151 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006108/0.767, allocations: 3.724 MB / 0.6187 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.7682, allocations: 470.5 kB / 0.6192 GB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.7685, allocations: 31.98 kB / 0.6192 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009692/0.7695, allocations: 87.91 kB / 0.6193 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.7698, allocations: 113.1 kB / 0.6194 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7699, allocations: 43.97 kB / 0.6195 GB, free: 7.668 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002243/0.7721, allocations: 1.472 MB / 0.6209 GB, free: 6.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7721, allocations: 3.938 kB / 0.6209 GB, free: 6.168 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002093/0.7742, allocations: 0.5898 MB / 0.6215 GB, free: 5.578 MB / 394.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 (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.001231/0.7755, allocations: 0.6181 MB / 0.6221 GB, free: 5.086 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004162/0.7797, allocations: 2.51 MB / 0.6245 GB, free: 2.535 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.7797, allocations: 0 / 0.6245 GB, free: 2.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.7823, allocations: 1.742 MB / 0.6262 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.7842, allocations: 414.2 kB / 0.6266 GB, free: 324 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008161/0.7923, allocations: 6.082 MB / 0.6326 GB, free: 10.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.794, allocations: 2.002 MB / 0.6345 GB, free: 8.152 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001327/0.7953, allocations: 403.8 kB / 0.6349 GB, free: 7.754 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.7957, allocations: 131.4 kB / 0.635 GB, free: 7.625 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.7957, allocations: 0 / 0.635 GB, free: 7.625 MB / 410.7 MB Notification: Performance of Templates: time 0.2704/1.066, allocations: 31.21 MB / 0.6655 GB, free: 108.6 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