Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009633/0.0009633, allocations: 203.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 245.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007127/0.0007127, allocations: 91.22 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002135/0.0002135, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.199, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.3084, allocations: 106.3 MB / 0.5029 GB, free: 1.258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.3087, allocations: 95.92 kB / 0.503 GB, free: 1.164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2689/0.5776, allocations: 53.53 MB / 0.5553 GB, free: 57.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.5777, allocations: 4 kB / 0.5553 GB, free: 57.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002579/0.578, allocations: 71.88 kB / 0.5553 GB, free: 57.63 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.006572/0.5846, allocations: 3.013 MB / 0.5583 GB, free: 54.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.5846, allocations: 8.031 kB / 0.5583 GB, free: 54.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/0.5861, allocations: 392.9 kB / 0.5587 GB, free: 54.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003451/0.5895, allocations: 1.964 MB / 0.5606 GB, free: 52.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.5897, allocations: 197.4 kB / 0.5608 GB, free: 51.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005718/0.5903, allocations: 256.3 kB / 0.561 GB, free: 51.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005347/0.5957, allocations: 3.513 MB / 0.5645 GB, free: 48.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.149e-05/0.5957, allocations: 8.188 kB / 0.5645 GB, free: 48.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.596, allocations: 107.9 kB / 0.5646 GB, free: 47.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.462e-05/0.5961, allocations: 104.9 kB / 0.5647 GB, free: 47.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004526/0.6006, allocations: 2.978 MB / 0.5676 GB, free: 44.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.6146, allocations: 10.92 MB / 0.5782 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.6174, allocations: 3.124 MB / 0.5813 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.6191, allocations: 1.309 MB / 0.5826 GB, free: 28.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.6194, allocations: 138.4 kB / 0.5827 GB, free: 28.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001485/0.6209, allocations: 1.175 MB / 0.5838 GB, free: 27.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=159): time 3.587e-06/0.6209, allocations: 4 kB / 0.5838 GB, free: 27.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.0169/0.6378, allocations: 8.781 MB / 0.5924 GB, free: 18.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.6379, allocations: 172.2 kB / 0.5926 GB, free: 18.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/0.6405, allocations: 1.812 MB / 0.5944 GB, free: 16.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.6406, allocations: 61.69 kB / 0.5944 GB, free: 16.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008295/0.6414, allocations: 1.173 MB / 0.5956 GB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003689/0.6418, allocations: 0.5661 MB / 0.5961 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.6419, allocations: 40 kB / 0.5962 GB, free: 14.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.403e-05/0.642, allocations: 381.8 kB / 0.5965 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.6434, allocations: 0.9994 MB / 0.5975 GB, free: 13.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.6449, allocations: 1.374 MB / 0.5988 GB, free: 11.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/0.648, allocations: 2.396 MB / 0.6012 GB, free: 9.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.648, allocations: 4 kB / 0.6012 GB, free: 9.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004908/0.6529, allocations: 3.291 MB / 0.6044 GB, free: 6.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.653, allocations: 8 kB / 0.6044 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.653, allocations: 11.98 kB / 0.6044 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/0.6549, allocations: 0.8686 MB / 0.6053 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.6561, allocations: 343.5 kB / 0.6056 GB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.6669, allocations: 9.56 MB / 0.6149 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.6688, allocations: 139.9 kB / 0.6151 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/0.6693, allocations: 67.98 kB / 0.6151 GB, free: 10.69 MB / 394.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: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * 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: 3 * 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: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00227/0.6715, allocations: 0.9276 MB / 0.616 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006838/0.6722, allocations: 205.5 kB / 0.6162 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006226/0.6785, allocations: 3.158 MB / 0.6193 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.6785, allocations: 27.94 kB / 0.6193 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.477e-05/0.6786, allocations: 8 kB / 0.6193 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6786, allocations: 7.969 kB / 0.6194 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.6908, allocations: 6.277 MB / 0.6255 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.6908, allocations: 7.984 kB / 0.6255 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009546/0.6918, allocations: 219.7 kB / 0.6257 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002391/0.6942, allocations: 0.9329 MB / 0.6266 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.6944, allocations: 35.98 kB / 0.6266 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.7067, allocations: 11.05 MB / 0.6374 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.7067, allocations: 4.031 kB / 0.6374 GB, free: 3.133 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00748/0.7142, allocations: 4.6 MB / 0.6419 GB, free: 14.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.7154, allocations: 0.4946 MB / 0.6424 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005637/0.716, allocations: 40.36 kB / 0.6425 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.7173, allocations: 111.9 kB / 0.6426 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000563/0.7179, allocations: 209.5 kB / 0.6428 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.7181, allocations: 51.98 kB / 0.6428 GB, free: 13.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002782/0.7209, allocations: 1.243 MB / 0.644 GB, free: 12.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7209, allocations: 0 / 0.644 GB, free: 12.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002493/0.7234, allocations: 0.664 MB / 0.6447 GB, free: 11.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005973/0.724, allocations: 332 kB / 0.645 GB, free: 11.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.729, allocations: 3.259 MB / 0.6482 GB, free: 7.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.7291, allocations: 4 kB / 0.6482 GB, free: 7.977 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/0.7324, allocations: 2.226 MB / 0.6503 GB, free: 5.684 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/0.7359, allocations: 0.5591 MB / 0.6509 GB, free: 5.133 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.7464, allocations: 6.726 MB / 0.6575 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002227/0.7487, allocations: 2.153 MB / 0.6596 GB, free: 12.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006563/0.7493, allocations: 131.4 kB / 0.6597 GB, free: 12.02 MB / 442.7 MB Notification: Performance of SimCode: time 7.22e-07/0.7494, allocations: 4 kB / 0.6597 GB, free: 12.02 MB / 442.7 MB Notification: Performance of Templates: time 0.2761/1.025, allocations: 103.2 MB / 0.7605 GB, free: 58.24 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches