Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008427/0.0008427, allocations: 176.5 kB / 17.03 MB, free: 5.109 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.18/1.18, allocations: 223.3 MB / 241 MB, free: 10.07 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.0007411/0.0007413, allocations: 96.84 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002283/0.0002283, allocations: 8 kB / 351.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1839, allocations: 50.41 MB / 402.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.006544/0.1905, allocations: 9.101 MB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004037/0.1946, allocations: 3.027 MB / 414.3 MB, free: 20.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007471/0.1954, allocations: 47.81 kB / 414.4 MB, free: 20.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009606/0.1963, allocations: 0.5514 MB / 414.9 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.1976, allocations: 0.7536 MB / 415.7 MB, free: 19.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.1981, allocations: 263.6 kB / 415.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002199/0.2003, allocations: 3.502 MB / 419.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.2018, allocations: 1.751 MB / 421.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009313/0.2027, allocations: 1.113 MB / 422.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.2039, allocations: 1.51 MB / 423.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002227/0.2042, allocations: 160 kB / 424 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.2046, allocations: 239.9 kB / 424.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004861/0.2051, allocations: 0.8215 MB / 425 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003751/0.2055, allocations: 0.6134 MB / 425.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002229/0.2078, allocations: 4.157 MB / 429.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2078, allocations: 0 / 429.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2078, allocations: 0 / 429.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.552e-05/0.2078, allocations: 0 / 429.8 MB, free: 4.828 MB / 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.004376/0.2122, allocations: 3.029 MB / 432.8 MB, free: 1.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.2123, allocations: 8.031 kB / 432.8 MB, free: 1.723 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006301/0.2129, allocations: 352 kB / 433.2 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.2152, allocations: 1.808 MB / 435 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.2154, allocations: 201 kB / 435.2 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003143/0.2157, allocations: 252 kB / 435.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005017/0.2207, allocations: 3.523 MB / 439 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/0.2208, allocations: 15.83 kB / 439 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.221, allocations: 108 kB / 439.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.381e-05/0.2211, allocations: 108.9 kB / 439.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004498/0.2256, allocations: 3.099 MB / 442.3 MB, free: 8.098 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01408/0.2397, allocations: 10.94 MB / 453.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.2428, allocations: 3.08 MB / 456.3 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002067/0.2449, allocations: 1.395 MB / 457.7 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002428/0.2452, allocations: 122.4 kB / 457.8 MB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00169/0.2469, allocations: 1.156 MB / 459 MB, free: 6.863 MB / 330.7 MB Notification: Performance of pre-optimization done (n=156): time 3.647e-06/0.2469, allocations: 0 / 459 MB, free: 6.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=172): time 0.01876/0.2657, allocations: 8.921 MB / 467.9 MB, free: 13.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.2658, allocations: 176.2 kB / 468.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/0.2686, allocations: 1.824 MB / 469.9 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.2688, allocations: 61.7 kB / 469.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.2699, allocations: 1.184 MB / 471.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004787/0.2704, allocations: 0.5662 MB / 471.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2705, allocations: 40 kB / 471.7 MB, free: 9.875 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.2707, allocations: 373.9 kB / 472.1 MB, free: 9.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.2723, allocations: 1.011 MB / 473.1 MB, free: 8.492 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/0.2741, allocations: 1.442 MB / 474.6 MB, free: 6.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.2758, allocations: 1.169 MB / 475.7 MB, free: 5.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.2758, allocations: 4 kB / 475.7 MB, free: 5.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005294/0.2811, allocations: 3.338 MB / 479.1 MB, free: 2.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.2812, allocations: 8 kB / 479.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.2812, allocations: 12 kB / 479.1 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001933/0.2831, allocations: 0.8816 MB / 480 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.2843, allocations: 347.4 kB / 480.3 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009886/0.2942, allocations: 9.549 MB / 489.9 MB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.2958, allocations: 155.8 kB / 490 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.2959, allocations: 68 kB / 490.1 MB, free: 6.938 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.001437/0.2973, allocations: 0.9253 MB / 491 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002913/0.2976, allocations: 205.5 kB / 491.2 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004734/0.3024, allocations: 3.111 MB / 494.3 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.3024, allocations: 19.98 kB / 494.3 MB, free: 2.637 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.3024, allocations: 8 kB / 494.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3024, allocations: 7.969 kB / 494.3 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009205/0.3117, allocations: 6.284 MB / 0.4889 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.3117, allocations: 4 kB / 0.4889 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009055/0.3126, allocations: 215.7 kB / 0.4891 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/0.3149, allocations: 0.9323 MB / 0.49 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001304/0.315, allocations: 47.92 kB / 0.4901 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1764/0.4914, allocations: 10.97 MB / 0.5008 GB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.4914, allocations: 13.2 kB / 0.5008 GB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007189/0.4986, allocations: 4.53 MB / 0.5052 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009199/0.4996, allocations: 0.4952 MB / 0.5057 GB, free: 92.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.4998, allocations: 35.84 kB / 0.5057 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009489/0.5008, allocations: 115.9 kB / 0.5058 GB, free: 92.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004137/0.5012, allocations: 202.8 kB / 0.506 GB, free: 92.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.5014, allocations: 49.16 kB / 0.5061 GB, free: 92.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001758/0.5031, allocations: 1.239 MB / 0.5073 GB, free: 92.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5031, allocations: 0 / 0.5073 GB, free: 92.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002096/0.5052, allocations: 0.6321 MB / 0.5079 GB, free: 92.36 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.0003572/0.5056, allocations: 182.7 kB / 0.5081 GB, free: 92.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004353/0.51, allocations: 3.25 MB / 0.5113 GB, free: 90.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.51, allocations: 0 / 0.5113 GB, free: 90.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002633/0.5126, allocations: 2.22 MB / 0.5134 GB, free: 89.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.515, allocations: 0.5546 MB / 0.514 GB, free: 89.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007031/0.522, allocations: 6.714 MB / 0.5205 GB, free: 83.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.5233, allocations: 2.149 MB / 0.5226 GB, free: 81.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/0.5237, allocations: 139.4 kB / 0.5228 GB, free: 81.64 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5237, allocations: 0 / 0.5228 GB, free: 81.64 MB / 378.7 MB Notification: Performance of Templates: time 0.07669/0.6004, allocations: 102.3 MB / 0.6227 GB, free: 11.36 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches