Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.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_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001009, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007687/0.0007687, allocations: 98.58 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002268, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2045, allocations: 51.3 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.319, allocations: 105.1 MB / 0.5017 GB, free: 2.504 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.3193, allocations: 87.95 kB / 0.5018 GB, free: 2.418 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2492/0.5685, allocations: 44.77 MB / 0.5455 GB, free: 67.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5685, allocations: 0 / 0.5455 GB, free: 67.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001573/0.5687, allocations: 59.88 kB / 0.5456 GB, free: 67.56 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.004762/0.5735, allocations: 2.433 MB / 0.5479 GB, free: 65.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.5735, allocations: 12.02 kB / 0.548 GB, free: 65.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.5747, allocations: 329.8 kB / 0.5483 GB, free: 64.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00278/0.5775, allocations: 1.601 MB / 0.5498 GB, free: 63.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.951e-05/0.5776, allocations: 148.4 kB / 0.55 GB, free: 62.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003859/0.578, allocations: 208.2 kB / 0.5502 GB, free: 62.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004191/0.5822, allocations: 2.73 MB / 0.5528 GB, free: 59.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-05/0.5822, allocations: 4.188 kB / 0.5528 GB, free: 59.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/0.5825, allocations: 87.94 kB / 0.5529 GB, free: 59.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-05/0.5825, allocations: 87.88 kB / 0.553 GB, free: 59.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003518/0.5861, allocations: 2.229 MB / 0.5552 GB, free: 57.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.5976, allocations: 8.45 MB / 0.5634 GB, free: 48.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.5995, allocations: 1.805 MB / 0.5652 GB, free: 46.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.601, allocations: 1.012 MB / 0.5662 GB, free: 45.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002657/0.6013, allocations: 138.6 kB / 0.5663 GB, free: 45.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.6013, allocations: 51.44 kB / 0.5664 GB, free: 45.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=107): time 3.376e-06/0.6013, allocations: 0 / 0.5664 GB, free: 45.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.01144/0.6128, allocations: 6.273 MB / 0.5725 GB, free: 39.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.6128, allocations: 64.41 kB / 0.5726 GB, free: 39.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.6149, allocations: 1.489 MB / 0.574 GB, free: 37.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.6151, allocations: 45.7 kB / 0.5741 GB, free: 37.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.6156, allocations: 0.972 MB / 0.575 GB, free: 36.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.6158, allocations: 429.8 kB / 0.5754 GB, free: 36.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.6159, allocations: 28 kB / 0.5754 GB, free: 36.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.848e-05/0.616, allocations: 361.9 kB / 0.5758 GB, free: 35.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.6171, allocations: 0.7378 MB / 0.5765 GB, free: 35.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.6182, allocations: 1.051 MB / 0.5775 GB, free: 33.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.6204, allocations: 1.873 MB / 0.5794 GB, free: 31.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.6204, allocations: 4 kB / 0.5794 GB, free: 31.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003475/0.6239, allocations: 2.349 MB / 0.5817 GB, free: 29.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.6239, allocations: 8 kB / 0.5817 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.624, allocations: 8 kB / 0.5817 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008844/0.6249, allocations: 410.5 kB / 0.5821 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.6261, allocations: 343.5 kB / 0.5824 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003788/0.6299, allocations: 4.654 MB / 0.5869 GB, free: 23.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.631, allocations: 87.91 kB / 0.587 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.6312, allocations: 52 kB / 0.5871 GB, free: 23.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001276/0.6325, allocations: 0.7121 MB / 0.5878 GB, free: 22.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/0.6328, allocations: 165.9 kB / 0.5879 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003324/0.6361, allocations: 2.168 MB / 0.59 GB, free: 20.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.6362, allocations: 16 kB / 0.5901 GB, free: 20.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.6362, allocations: 0 / 0.5901 GB, free: 20.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.6362, allocations: 11.97 kB / 0.5901 GB, free: 20.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006925/0.6431, allocations: 4.606 MB / 0.5946 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.6432, allocations: 4 kB / 0.5946 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009463/0.6441, allocations: 240 kB / 0.5948 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.6452, allocations: 466.8 kB / 0.5952 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.6453, allocations: 31.98 kB / 0.5953 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004555/0.6499, allocations: 6.184 MB / 0.6013 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6499, allocations: 4 kB / 0.6013 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004422/0.6544, allocations: 3.252 MB / 0.6045 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007959/0.6552, allocations: 403 kB / 0.6049 GB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003391/0.6555, allocations: 28 kB / 0.6049 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000906/0.6564, allocations: 91.84 kB / 0.605 GB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.6567, allocations: 108.8 kB / 0.6051 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.831e-05/0.6568, allocations: 39.92 kB / 0.6051 GB, free: 4.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001464/0.6583, allocations: 1.02 MB / 0.6061 GB, free: 3.539 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6583, allocations: 0 / 0.6061 GB, free: 3.539 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001504/0.6598, allocations: 0.4883 MB / 0.6066 GB, free: 3.051 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * 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%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004694/0.6603, allocations: 301 kB / 0.6069 GB, free: 2.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003037/0.6633, allocations: 2.297 MB / 0.6091 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6633, allocations: 128 / 0.6091 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002284/0.6656, allocations: 1.519 MB / 0.6106 GB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.6683, allocations: 427.8 kB / 0.611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008149/0.6765, allocations: 5.396 MB / 0.6163 GB, free: 8.926 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/0.6783, allocations: 1.803 MB / 0.6181 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005731/0.6789, allocations: 115.4 kB / 0.6182 GB, free: 6.977 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6789, allocations: 0 / 0.6182 GB, free: 6.977 MB / 394.7 MB Notification: Performance of Templates: time 0.2325/0.9114, allocations: 70.4 MB / 0.6869 GB, free: 124.7 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DOL/IMC_DOL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches