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_Initialize.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") 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: 175.1 kB / 13.63 MB, free: 1.684 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.365/1.365, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008417/0.0008414, allocations: 83.86 kB / 286.5 MB, free: 196 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.456e-05, allocations: 7.984 kB / 343.9 MB, free: 4.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0865/0.08654, allocations: 50.41 MB / 394.3 MB, free: 1.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4591, allocations: 147.4 MB / 0.529 GB, free: 4.012 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.4594, allocations: 109.3 kB / 0.5291 GB, free: 3.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.055/1.514, allocations: 349.3 MB / 0.8702 GB, free: 11.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.514, allocations: 0 / 0.8702 GB, free: 11.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008603/1.515, allocations: 247.6 kB / 0.8704 GB, free: 11.38 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.03452/1.55, allocations: 10.19 MB / 0.8804 GB, free: 1.086 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/1.55, allocations: 11.97 kB / 0.8804 GB, free: 1.074 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3019/1.852, allocations: 4.73 MB / 0.885 GB, free: 31.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02435/1.876, allocations: 9.469 MB / 0.8942 GB, free: 30.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009523/1.877, allocations: 0.7739 MB / 0.895 GB, free: 30.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004474/1.882, allocations: 1.024 MB / 0.896 GB, free: 30.56 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04092/1.923, allocations: 16.79 MB / 0.9124 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000372/1.923, allocations: 16.58 kB / 0.9124 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002677/1.926, allocations: 444.4 kB / 0.9128 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007785/1.926, allocations: 0.7482 MB / 0.9136 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0289/1.955, allocations: 15.03 MB / 0.9282 GB, free: 29.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08714/2.043, allocations: 55.88 MB / 0.9828 GB, free: 8.102 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02878/2.071, allocations: 30.94 MB / 1.013 GB, free: 12.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007736/2.079, allocations: 4.226 MB / 1.017 GB, free: 10.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02378/2.103, allocations: 10.46 MB / 1.027 GB, free: 5.645 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.354e-05/2.103, allocations: 83.67 kB / 1.027 GB, free: 5.574 MB / 490.7 MB Notification: Performance of pre-optimization done (n=396): time 5.861e-06/2.103, allocations: 5.656 kB / 1.027 GB, free: 5.574 MB / 490.7 MB Notification: Performance of matching and sorting (n=421): time 0.03198/2.135, allocations: 16 MB / 1.043 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/2.135, allocations: 123.3 kB / 1.043 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009992/2.145, allocations: 4.071 MB / 1.047 GB, free: 8.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009666/2.146, allocations: 97.7 kB / 1.047 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004251/2.151, allocations: 4.662 MB / 1.052 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002358/2.153, allocations: 1.442 MB / 1.053 GB, free: 2.633 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001054/2.154, allocations: 120 kB / 1.053 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006358/2.155, allocations: 0.5381 MB / 1.054 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007684/2.162, allocations: 3.001 MB / 1.057 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00686/2.169, allocations: 4.826 MB / 1.061 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006592/2.176, allocations: 3.869 MB / 1.065 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.288e-05/2.176, allocations: 20 kB / 1.065 GB, free: 7.387 MB / 0.5105 GB Notification: Performance of matching and sorting (n=762) (initialization): time 0.3238/2.5, allocations: 9.609 MB / 1.075 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/2.5, allocations: 37.28 kB / 1.075 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/2.5, allocations: 64.53 kB / 1.075 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004777/2.505, allocations: 1.658 MB / 1.076 GB, free: 84.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005594/2.51, allocations: 1.312 MB / 1.078 GB, free: 84.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/2.532, allocations: 16.38 MB / 1.094 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006524/2.539, allocations: 331.2 kB / 1.094 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001362/2.54, allocations: 290.1 kB / 1.094 GB, free: 78.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 665 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001021/2.541, allocations: 474.4 kB / 1.095 GB, free: 78.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/2.542, allocations: 496.8 kB / 1.095 GB, free: 78.85 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01465/2.557, allocations: 7.631 MB / 1.103 GB, free: 78.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.453e-05/2.557, allocations: 43.59 kB / 1.103 GB, free: 78.36 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.989e-05/2.557, allocations: 15.66 kB / 1.103 GB, free: 78.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.501e-05/2.557, allocations: 22.73 kB / 1.103 GB, free: 78.36 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02953/2.587, allocations: 17.27 MB / 1.12 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/2.587, allocations: 7.656 kB / 1.12 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003067/2.59, allocations: 0.7175 MB / 1.12 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004018/2.594, allocations: 1.56 MB / 1.122 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005313/2.594, allocations: 107.5 kB / 1.122 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/2.613, allocations: 19.43 MB / 1.141 GB, free: 67.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/2.613, allocations: 10.19 kB / 1.141 GB, free: 67.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0158/2.629, allocations: 11.9 MB / 1.153 GB, free: 66.06 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00316/2.632, allocations: 1.154 MB / 1.154 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/2.633, allocations: 94.45 kB / 1.154 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002904/2.636, allocations: 247.8 kB / 1.154 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007059/2.637, allocations: 326.2 kB / 1.154 GB, free: 65.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/2.637, allocations: 126.7 kB / 1.154 GB, free: 65.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004451/2.642, allocations: 3.063 MB / 1.157 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/2.642, allocations: 1.969 kB / 1.157 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007469/2.649, allocations: 1.909 MB / 1.159 GB, free: 65.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 355 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,39.8%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001213/2.65, allocations: 0.6764 MB / 1.16 GB, free: 65.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01213/2.662, allocations: 7.865 MB / 1.168 GB, free: 64.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/2.663, allocations: 5.188 kB / 1.168 GB, free: 64.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007393/2.67, allocations: 4.543 MB / 1.172 GB, free: 62.03 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00711/2.677, allocations: 1.172 MB / 1.173 GB, free: 61.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/2.716, allocations: 16.45 MB / 1.189 GB, free: 55.03 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01355/2.73, allocations: 6.955 MB / 1.196 GB, free: 52.55 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008375/2.738, allocations: 1.851 MB / 1.198 GB, free: 52.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002051/2.74, allocations: 371.6 kB / 1.198 GB, free: 52.34 MB / 0.5105 GB Notification: Performance of SimCode: time 1.643e-06/2.74, allocations: 0 / 1.198 GB, free: 52.34 MB / 0.5105 GB Notification: Performance of Templates: time 0.4278/3.168, allocations: 82.75 MB / 1.279 GB, free: 80.19 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_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_Initialize/IMC_Initialize.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches