Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007446/0.0007446, allocations: 101.2 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002456, allocations: 12 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1954, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.275/0.4705, allocations: 111.2 MB / 0.5077 GB, free: 97.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.4708, allocations: 87.45 kB / 0.5078 GB, free: 97.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.12/0.5908, allocations: 53.1 MB / 0.5597 GB, free: 52.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5908, allocations: 0 / 0.5597 GB, free: 52.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001535/0.591, allocations: 63.92 kB / 0.5597 GB, free: 52.75 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.0049/0.5959, allocations: 2.771 MB / 0.5624 GB, free: 49.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.596, allocations: 11.97 kB / 0.5624 GB, free: 49.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.5971, allocations: 369.2 kB / 0.5628 GB, free: 49.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.6, allocations: 1.857 MB / 0.5646 GB, free: 47.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.229e-05/0.6001, allocations: 152.4 kB / 0.5648 GB, free: 47.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002913/0.6004, allocations: 204.3 kB / 0.5649 GB, free: 47.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003665/0.6041, allocations: 2.694 MB / 0.5676 GB, free: 44.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.178e-05/0.6041, allocations: 7.938 kB / 0.5676 GB, free: 44.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.6043, allocations: 87.98 kB / 0.5677 GB, free: 44.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.471e-05/0.6044, allocations: 83.94 kB / 0.5677 GB, free: 44.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003249/0.6077, allocations: 2.186 MB / 0.5699 GB, free: 42.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.6193, allocations: 8.345 MB / 0.578 GB, free: 33.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.6217, allocations: 1.667 MB / 0.5797 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.6231, allocations: 1.034 MB / 0.5807 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002737/0.6234, allocations: 142 kB / 0.5808 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.6234, allocations: 43.56 kB / 0.5808 GB, free: 30.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.597e-06/0.6234, allocations: 0 / 0.5808 GB, free: 30.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.01146/0.6349, allocations: 6.562 MB / 0.5873 GB, free: 23.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.635, allocations: 72.64 kB / 0.5873 GB, free: 23.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.6375, allocations: 2.122 MB / 0.5894 GB, free: 21.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.351e-05/0.6376, allocations: 45.7 kB / 0.5894 GB, free: 21.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.6382, allocations: 1.104 MB / 0.5905 GB, free: 20.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.6384, allocations: 469.1 kB / 0.591 GB, free: 20.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-05/0.6385, allocations: 28 kB / 0.591 GB, free: 19.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.231e-05/0.6386, allocations: 357.9 kB / 0.5913 GB, free: 19.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.6397, allocations: 0.7652 MB / 0.5921 GB, free: 18.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.6409, allocations: 1.03 MB / 0.5931 GB, free: 17.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/0.6432, allocations: 1.882 MB / 0.5949 GB, free: 15.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6432, allocations: 0 / 0.5949 GB, free: 15.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004361/0.6475, allocations: 2.835 MB / 0.5977 GB, free: 12.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.6476, allocations: 8 kB / 0.5977 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.6476, allocations: 8 kB / 0.5977 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.6495, allocations: 0.8417 MB / 0.5985 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009802/0.6505, allocations: 275.5 kB / 0.5988 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009406/0.6599, allocations: 9.322 MB / 0.6079 GB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.6614, allocations: 104 kB / 0.608 GB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.6615, allocations: 51.98 kB / 0.608 GB, free: 2.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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.001253/0.6628, allocations: 0.751 MB / 0.6088 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000352/0.6631, allocations: 197.6 kB / 0.609 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00442/0.6676, allocations: 2.586 MB / 0.6115 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.6676, allocations: 15.94 kB / 0.6115 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.6676, allocations: 8.188 kB / 0.6115 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.6676, allocations: 11.97 kB / 0.6115 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008786/0.6764, allocations: 5.105 MB / 0.6165 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.6765, allocations: 7.984 kB / 0.6165 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/0.6774, allocations: 223.9 kB / 0.6167 GB, free: 8.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001851/0.6793, allocations: 0.6979 MB / 0.6174 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.6794, allocations: 39.97 kB / 0.6175 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009683/0.6891, allocations: 8.491 MB / 0.6257 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6891, allocations: 4.031 kB / 0.6257 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00629/0.6954, allocations: 3.652 MB / 0.6293 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.6966, allocations: 478.3 kB / 0.6298 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002631/0.6968, allocations: 35.98 kB / 0.6298 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009284/0.6978, allocations: 91.91 kB / 0.6299 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.6981, allocations: 113.1 kB / 0.63 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.6982, allocations: 39.98 kB / 0.63 GB, free: 10.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002285/0.7005, allocations: 1.481 MB / 0.6315 GB, free: 9.375 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.553e-06/0.7005, allocations: 4 kB / 0.6315 GB, free: 9.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002011/0.7025, allocations: 0.5975 MB / 0.6321 GB, free: 8.773 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (95): * Single equations (assignments): 89 * 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.00128/0.7038, allocations: 0.6216 MB / 0.6327 GB, free: 8.266 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004837/0.7086, allocations: 2.51 MB / 0.6351 GB, free: 5.719 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.7087, allocations: 0 / 0.6351 GB, free: 5.719 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002796/0.7115, allocations: 1.742 MB / 0.6368 GB, free: 3.902 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/0.7145, allocations: 440.4 kB / 0.6373 GB, free: 3.473 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008884/0.7234, allocations: 6.165 MB / 0.6433 GB, free: 13.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/0.7251, allocations: 1.94 MB / 0.6452 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000572/0.7257, allocations: 139.3 kB / 0.6453 GB, free: 11.13 MB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7257, allocations: 0 / 0.6453 GB, free: 11.13 MB / 426.7 MB Notification: Performance of Templates: time 0.234/0.9597, allocations: 64.74 MB / 0.7085 GB, free: 109.6 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches