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.001066/0.001066, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007394/0.0007394, allocations: 98.16 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002165, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2018, allocations: 51.29 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.006609/0.2085, allocations: 9.123 MB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00434/0.2129, allocations: 3.074 MB / 419.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008693/0.2138, allocations: 51.75 kB / 419.7 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.2149, allocations: 0.5553 MB / 420.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.2164, allocations: 0.7614 MB / 421.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000539/0.217, allocations: 255.6 kB / 421.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002535/0.2195, allocations: 3.502 MB / 424.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001573/0.2211, allocations: 1.751 MB / 426.6 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.2224, allocations: 1.121 MB / 427.7 MB, free: 7.602 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.2237, allocations: 1.514 MB / 429.2 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.224, allocations: 164 kB / 429.4 MB, free: 5.922 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005332/0.2245, allocations: 231.9 kB / 429.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.225, allocations: 0.8333 MB / 430.4 MB, free: 4.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004406/0.2255, allocations: 0.6134 MB / 431 MB, free: 4.238 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002465/0.228, allocations: 4.165 MB / 435.2 MB, free: 64 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.228, allocations: 0 / 435.2 MB, free: 64 kB / 298.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.228, allocations: 4 kB / 435.2 MB, free: 60 kB / 298.7 MB Notification: Performance of Transformations before backend: time 6.567e-05/0.2281, allocations: 3.938 kB / 435.2 MB, free: 56 kB / 298.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.005271/0.2333, allocations: 3.025 MB / 438.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2334, allocations: 12.03 kB / 438.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.2344, allocations: 395.8 kB / 438.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002692/0.2371, allocations: 1.805 MB / 440.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.2373, allocations: 201.1 kB / 440.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.2376, allocations: 256 kB / 440.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005364/0.243, allocations: 3.52 MB / 444.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.126e-05/0.243, allocations: 15.84 kB / 444.4 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002236/0.2433, allocations: 104 kB / 444.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.2434, allocations: 112.9 kB / 444.6 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004846/0.2482, allocations: 3.095 MB / 447.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/0.2634, allocations: 10.93 MB / 458.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003209/0.2667, allocations: 3.078 MB / 461.7 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002136/0.2688, allocations: 1.388 MB / 463.1 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/0.2691, allocations: 138.4 kB / 463.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001649/0.2708, allocations: 1.148 MB / 464.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of pre-optimization done (n=156): time 3.447e-06/0.2708, allocations: 0 / 464.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of matching and sorting (n=172): time 0.01873/0.2895, allocations: 8.926 MB / 473.3 MB, free: 8.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.2896, allocations: 180.2 kB / 473.5 MB, free: 8.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.2922, allocations: 1.824 MB / 475.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.2923, allocations: 57.7 kB / 475.4 MB, free: 6.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.2933, allocations: 1.196 MB / 476.6 MB, free: 5.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.2938, allocations: 0.5584 MB / 477.1 MB, free: 5.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.485e-05/0.2939, allocations: 36 kB / 477.2 MB, free: 5.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2941, allocations: 381.9 kB / 477.6 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.2956, allocations: 1.007 MB / 478.6 MB, free: 3.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/0.2973, allocations: 1.438 MB / 480 MB, free: 2.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.299, allocations: 1.173 MB / 481.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.299, allocations: 7.953 kB / 481.2 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005353/0.3043, allocations: 3.33 MB / 484.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3044, allocations: 12 kB / 484.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.3044, allocations: 12 kB / 484.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.3064, allocations: 0.8807 MB / 485.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.3076, allocations: 343.5 kB / 485.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.3181, allocations: 9.548 MB / 495.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.3199, allocations: 143.9 kB / 495.4 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/0.3202, allocations: 68 kB / 495.5 MB, free: 2.141 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (185): * Single equations (assignments): 180 * 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.0021/0.3223, allocations: 0.9291 MB / 496.4 MB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006312/0.3229, allocations: 205.5 kB / 496.6 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005624/0.3286, allocations: 3.115 MB / 499.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.3286, allocations: 19.95 kB / 499.8 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-05/0.3286, allocations: 8 kB / 499.8 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.3287, allocations: 7.969 kB / 499.8 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.341, allocations: 6.299 MB / 0.4942 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.3411, allocations: 4 kB / 0.4942 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009051/0.342, allocations: 207.7 kB / 0.4944 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.3443, allocations: 0.9328 MB / 0.4953 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.3445, allocations: 43.97 kB / 0.4954 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.215/0.5595, allocations: 10.98 MB / 0.5061 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5596, allocations: 2.875 kB / 0.5061 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006966/0.5665, allocations: 4.534 MB / 0.5105 GB, free: 85.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.5677, allocations: 0.494 MB / 0.511 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.568, allocations: 39.98 kB / 0.511 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.569, allocations: 116.5 kB / 0.5112 GB, free: 85.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000512/0.5695, allocations: 198.3 kB / 0.5113 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.5696, allocations: 46.98 kB / 0.5114 GB, free: 85.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001659/0.5713, allocations: 1.247 MB / 0.5126 GB, free: 84.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5713, allocations: 0 / 0.5126 GB, free: 84.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001758/0.5731, allocations: 0.6375 MB / 0.5132 GB, free: 84.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (123): * Single equations (assignments): 115 * 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.0003016/0.5734, allocations: 171.8 kB / 0.5134 GB, free: 84.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004056/0.5775, allocations: 3.257 MB / 0.5166 GB, free: 83.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5775, allocations: 0 / 0.5166 GB, free: 83.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.5801, allocations: 2.218 MB / 0.5187 GB, free: 82.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002488/0.5826, allocations: 0.5583 MB / 0.5193 GB, free: 81.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008424/0.5911, allocations: 6.719 MB / 0.5258 GB, free: 75.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/0.5926, allocations: 2.153 MB / 0.528 GB, free: 73.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006553/0.5933, allocations: 139.4 kB / 0.5281 GB, free: 73.31 MB / 378.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5933, allocations: 0 / 0.5281 GB, free: 73.31 MB / 378.7 MB Notification: Performance of Templates: time 0.08554/0.6789, allocations: 102.4 MB / 0.6281 GB, free: 2.918 MB / 410.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/jenkins/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