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.001094/0.001094, allocations: 112.5 kB / 16.63 MB, free: 6.816 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.00113/0.00113, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.28/1.28, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009677/0.0009677, allocations: 48.27 kB / 300.2 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09321, allocations: 49.45 MB / 349.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.1883/0.2816, allocations: 37.57 MB / 387.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.2996, allocations: 9.874 MB / 397.1 MB, free: 324 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006755/0.3064, allocations: 279.3 kB / 397.3 MB, free: 264 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02213/0.3285, allocations: 9.575 MB / 406.9 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01506/0.3436, allocations: 3.652 MB / 410.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007037/0.3506, allocations: 2.191 MB / 412.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01954/0.3702, allocations: 16.45 MB / 429.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04849/0.4187, allocations: 35.04 MB / 464.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01285/0.4316, allocations: 8.407 MB / 472.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01405/0.4457, allocations: 9.402 MB / 482 MB, free: 1.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005602/0.4513, allocations: 2.414 MB / 484.5 MB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00845/0.4598, allocations: 2.808 MB / 487.3 MB, free: 12.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006631/0.4664, allocations: 4.82 MB / 492.1 MB, free: 7.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01585/0.4823, allocations: 9.195 MB / 0.4895 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3773/0.8596, allocations: 31.9 MB / 0.5207 GB, free: 69.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.8596, allocations: 1 kB / 0.5207 GB, free: 69.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.8596, allocations: 0 / 0.5207 GB, free: 69.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007733/0.8604, allocations: 0 / 0.5207 GB, free: 69.46 MB / 430.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.05413/0.9146, allocations: 18.74 MB / 0.539 GB, free: 64.78 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.9146, allocations: 9.719 kB / 0.539 GB, free: 64.78 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04354/0.9582, allocations: 8.256 MB / 0.5471 GB, free: 63.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01886/0.9771, allocations: 9.87 MB / 0.5567 GB, free: 60.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007177/0.9778, allocations: 1.059 MB / 0.5577 GB, free: 59.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004654/0.9825, allocations: 1.41 MB / 0.5591 GB, free: 58.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04729/1.03, allocations: 22.76 MB / 0.5813 GB, free: 36.07 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003754/1.03, allocations: 19.89 kB / 0.5814 GB, free: 36.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002262/1.032, allocations: 0.582 MB / 0.5819 GB, free: 35.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005209/1.033, allocations: 0.7755 MB / 0.5827 GB, free: 34.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03549/1.069, allocations: 21.02 MB / 0.6032 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1152/1.184, allocations: 72.92 MB / 0.6744 GB, free: 4.461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2083/1.392, allocations: 42.44 MB / 0.7159 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009645/1.402, allocations: 5.244 MB / 0.721 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02251/1.424, allocations: 12.82 MB / 0.7335 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/1.424, allocations: 88.66 kB / 0.7336 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=504): time 6.973e-06/1.424, allocations: 3.594 kB / 0.7336 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=512): time 0.06999/1.494, allocations: 26.68 MB / 0.7596 GB, free: 167.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/1.495, allocations: 133.8 kB / 0.7598 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009739/1.504, allocations: 5.754 MB / 0.7654 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/1.505, allocations: 108.4 kB / 0.7655 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003637/1.509, allocations: 6.15 MB / 0.7715 GB, free: 160.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002168/1.511, allocations: 1.743 MB / 0.7732 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003123/1.514, allocations: 1.47 MB / 0.7746 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.165e-05/1.515, allocations: 305.1 kB / 0.7749 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007201/1.522, allocations: 3.668 MB / 0.7785 GB, free: 154.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008717/1.53, allocations: 6.519 MB / 0.7849 GB, free: 146.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01654/1.547, allocations: 10.83 MB / 0.7955 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.632e-05/1.547, allocations: 29.97 kB / 0.7955 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02844/1.576, allocations: 12.17 MB / 0.8074 GB, free: 122.5 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.355e-05/1.576, allocations: 48.56 kB / 0.8074 GB, free: 122.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/1.576, allocations: 92 kB / 0.8075 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006023/1.582, allocations: 1.604 MB / 0.8091 GB, free: 120.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008715/1.591, allocations: 1.657 MB / 0.8107 GB, free: 119.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02965/1.62, allocations: 19.64 MB / 0.8299 GB, free: 98.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007688/1.628, allocations: 435.3 kB / 0.8303 GB, free: 98.38 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.629, allocations: 371.6 kB / 0.8306 GB, free: 98.02 MB / 0.5138 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 (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.5%), (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.007324/1.637, allocations: 5.187 MB / 0.8357 GB, free: 92.82 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001238/1.638, allocations: 0.602 MB / 0.8363 GB, free: 92.21 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/1.651, allocations: 9.422 MB / 0.8455 GB, free: 82.69 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007577/1.659, allocations: 5.951 MB / 0.8513 GB, free: 76.71 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.771e-05/1.659, allocations: 19.38 kB / 0.8513 GB, free: 76.69 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.262e-05/1.659, allocations: 30.62 kB / 0.8514 GB, free: 76.66 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.688, allocations: 21.15 MB / 0.872 GB, free: 55.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/1.688, allocations: 12.12 kB / 0.872 GB, free: 55.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00347/1.692, allocations: 0.8698 MB / 0.8729 GB, free: 54.53 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/1.696, allocations: 1.645 MB / 0.8745 GB, free: 52.86 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003892/1.696, allocations: 128 kB / 0.8746 GB, free: 52.74 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/1.717, allocations: 23.18 MB / 0.8972 GB, free: 28.64 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/1.717, allocations: 18.28 kB / 0.8973 GB, free: 28.62 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/1.734, allocations: 13.84 MB / 0.9108 GB, free: 14.43 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003015/1.737, allocations: 1.364 MB / 0.9121 GB, free: 13.04 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009384/1.738, allocations: 104 kB / 0.9122 GB, free: 12.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002773/1.741, allocations: 295.8 kB / 0.9125 GB, free: 12.65 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009047/1.742, allocations: 412.4 kB / 0.9129 GB, free: 12.24 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.742, allocations: 155.9 kB / 0.913 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004609/1.747, allocations: 3.883 MB / 0.9168 GB, free: 8.234 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.81e-07/1.747, allocations: 4 kB / 0.9168 GB, free: 8.23 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007254/1.754, allocations: 2.336 MB / 0.9191 GB, free: 5.895 MB / 0.5138 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006951/1.755, allocations: 322.5 kB / 0.9194 GB, free: 5.582 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.2066/1.961, allocations: 16.12 MB / 0.9352 GB, free: 178.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/1.961, allocations: 0 / 0.9352 GB, free: 178.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007331/1.969, allocations: 5.492 MB / 0.9405 GB, free: 177.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007113/1.976, allocations: 1.633 MB / 0.9421 GB, free: 176.9 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03652/2.012, allocations: 30.89 MB / 0.9723 GB, free: 159.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007593/2.02, allocations: 8.848 MB / 0.9809 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006757/2.027, allocations: 2.53 MB / 0.9834 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/2.028, allocations: 461.7 kB / 0.9838 GB, free: 151.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.192e-06/2.028, allocations: 0 / 0.9838 GB, free: 151.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.136/2.164, allocations: 102.4 MB / 1.084 GB, free: 54.21 MB / 0.5138 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