Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 110.3 kB / 17.06 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009897/0.0009897, allocations: 47.92 kB / 351.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3054, allocations: 49.43 MB / 400.8 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.03714/0.3426, allocations: 38.28 MB / 439 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02318/0.3658, allocations: 10.02 MB / 449.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009795/0.3756, allocations: 295 kB / 449.4 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02465/0.4003, allocations: 10.16 MB / 459.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01673/0.4171, allocations: 4.051 MB / 463.6 MB, free: 9.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00919/0.4263, allocations: 2.369 MB / 465.9 MB, free: 7.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02452/0.4508, allocations: 16.38 MB / 482.3 MB, free: 7.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05414/0.505, allocations: 31.21 MB / 0.5015 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01645/0.5215, allocations: 8.501 MB / 0.5098 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01539/0.5369, allocations: 9.32 MB / 0.5189 GB, free: 5.684 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007542/0.5445, allocations: 2.418 MB / 0.5213 GB, free: 3.266 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009402/0.5539, allocations: 2.816 MB / 0.524 GB, free: 460 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007577/0.5615, allocations: 4.805 MB / 0.5287 GB, free: 11.63 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01818/0.5797, allocations: 9.199 MB / 0.5377 GB, free: 2.398 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5367/1.116, allocations: 32.11 MB / 0.569 GB, free: 48.56 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.117, allocations: 0 / 0.569 GB, free: 48.56 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.795e-06/1.117, allocations: 0.8125 kB / 0.569 GB, free: 48.56 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001072/1.118, allocations: 0 / 0.569 GB, free: 48.56 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.07131/1.189, allocations: 18.67 MB / 0.5873 GB, free: 40.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/1.189, allocations: 18.77 kB / 0.5873 GB, free: 40.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04705/1.236, allocations: 8.296 MB / 0.5954 GB, free: 36.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02257/1.259, allocations: 10.19 MB / 0.6053 GB, free: 28.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009585/1.26, allocations: 1.064 MB / 0.6064 GB, free: 27.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007688/1.267, allocations: 1.399 MB / 0.6078 GB, free: 26.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06743/1.335, allocations: 22.74 MB / 0.63 GB, free: 3.727 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009003/1.336, allocations: 23.8 kB / 0.63 GB, free: 3.703 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006999/1.343, allocations: 0.5788 MB / 0.6305 GB, free: 3.141 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008058/1.344, allocations: 0.7754 MB / 0.6313 GB, free: 2.363 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0527/1.396, allocations: 21.01 MB / 0.6518 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1379/1.534, allocations: 71.99 MB / 0.7221 GB, free: 5.059 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2939/1.828, allocations: 42.4 MB / 0.7635 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009985/1.838, allocations: 5.16 MB / 0.7686 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0263/1.865, allocations: 12.67 MB / 0.7809 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.242e-05/1.865, allocations: 91.47 kB / 0.781 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=498): time 6.853e-06/1.865, allocations: 0 / 0.781 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=506): time 0.05552/1.92, allocations: 26.28 MB / 0.8067 GB, free: 156.4 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/1.92, allocations: 132.7 kB / 0.8068 GB, free: 156.3 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008128/1.928, allocations: 5.762 MB / 0.8124 GB, free: 152.5 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.93, allocations: 113.7 kB / 0.8126 GB, free: 152.4 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002639/1.932, allocations: 6.156 MB / 0.8186 GB, free: 147 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/1.934, allocations: 1.725 MB / 0.8203 GB, free: 145.4 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002011/1.936, allocations: 1.461 MB / 0.8217 GB, free: 144.1 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.209e-05/1.936, allocations: 304.9 kB / 0.822 GB, free: 143.8 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004683/1.941, allocations: 3.624 MB / 0.8255 GB, free: 140.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/1.946, allocations: 6.476 MB / 0.8318 GB, free: 133.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/1.957, allocations: 10.76 MB / 0.8423 GB, free: 122.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-05/1.957, allocations: 28 kB / 0.8424 GB, free: 122.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01851/1.976, allocations: 12.08 MB / 0.8542 GB, free: 110 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.913e-05/1.976, allocations: 44 kB / 0.8542 GB, free: 109.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/1.976, allocations: 92 kB / 0.8543 GB, free: 109.8 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004117/1.98, allocations: 1.59 MB / 0.8559 GB, free: 108.2 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005687/1.986, allocations: 1.661 MB / 0.8575 GB, free: 106.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/2.007, allocations: 19.62 MB / 0.8766 GB, free: 86.27 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006543/2.014, allocations: 423.5 kB / 0.877 GB, free: 85.86 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/2.015, allocations: 364 kB / 0.8774 GB, free: 85.5 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01057/2.026, allocations: 5.201 MB / 0.8825 GB, free: 80.29 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002178/2.028, allocations: 0.5942 MB / 0.883 GB, free: 79.69 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/2.046, allocations: 9.36 MB / 0.8922 GB, free: 70.23 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009132/2.056, allocations: 5.872 MB / 0.8979 GB, free: 64.33 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-05/2.056, allocations: 24 kB / 0.8979 GB, free: 64.31 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.107e-05/2.056, allocations: 23.91 kB / 0.898 GB, free: 64.29 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03595/2.092, allocations: 20.99 MB / 0.9185 GB, free: 43.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2e-05/2.092, allocations: 4 kB / 0.9185 GB, free: 43.2 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/2.095, allocations: 0.8624 MB / 0.9193 GB, free: 42.33 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004327/2.1, allocations: 1.642 MB / 0.9209 GB, free: 40.67 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008237/2.101, allocations: 128 kB / 0.921 GB, free: 40.55 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02218/2.123, allocations: 23.19 MB / 0.9437 GB, free: 16.42 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/2.123, allocations: 11.94 kB / 0.9437 GB, free: 16.41 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01961/2.142, allocations: 13.71 MB / 0.9571 GB, free: 2.34 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003845/2.146, allocations: 1.36 MB / 0.9584 GB, free: 0.9531 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001567/2.148, allocations: 108 kB / 0.9585 GB, free: 0.8477 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003757/2.152, allocations: 284.1 kB / 0.9588 GB, free: 0.5703 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009814/2.153, allocations: 412.4 kB / 0.9592 GB, free: 172 kB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/2.153, allocations: 156 kB / 0.9593 GB, free: 16 kB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.3088/2.462, allocations: 3.883 MB / 0.9631 GB, free: 181.2 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.41e-07/2.462, allocations: 3.75 kB / 0.9631 GB, free: 181.2 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01287/2.475, allocations: 2.339 MB / 0.9654 GB, free: 181.2 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002151/2.477, allocations: 317 kB / 0.9657 GB, free: 181.1 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01575/2.493, allocations: 9.883 MB / 0.9754 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/2.493, allocations: 0 / 0.9754 GB, free: 179.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008863/2.502, allocations: 5.442 MB / 0.9807 GB, free: 178.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/2.513, allocations: 1.636 MB / 0.9823 GB, free: 177.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05111/2.564, allocations: 24.59 MB / 1.006 GB, free: 164.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01456/2.578, allocations: 8.849 MB / 1.015 GB, free: 157.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.008674/2.587, allocations: 2.534 MB / 1.017 GB, free: 155.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002258/2.589, allocations: 456.9 kB / 1.018 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.653e-06/2.589, allocations: 0 / 1.018 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of Templates: time 0.1528/2.742, allocations: 97.19 MB / 1.113 GB, free: 63.76 MB / 0.5607 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches