Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008398/0.0008399, allocations: 87.78 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.765e-05, allocations: 4 kB / 350.6 MB, free: 2.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.09798, allocations: 51.49 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3814/0.4794, allocations: 131.5 MB / 0.521 GB, free: 6.914 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.4797, allocations: 92.19 kB / 0.5211 GB, free: 6.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5952/1.075, allocations: 154.5 MB / 0.672 GB, free: 65.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.075, allocations: 0 / 0.672 GB, free: 65.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009881/1.076, allocations: 183.4 kB / 0.6722 GB, free: 65.66 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02434/1.1, allocations: 6.621 MB / 0.6786 GB, free: 61.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/1.1, allocations: 11.41 kB / 0.6786 GB, free: 61.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008345/1.109, allocations: 1.28 MB / 0.6799 GB, free: 60.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01748/1.126, allocations: 6.28 MB / 0.686 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004822/1.127, allocations: 0.4938 MB / 0.6865 GB, free: 54.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00257/1.129, allocations: 0.6717 MB / 0.6872 GB, free: 53.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/1.153, allocations: 9.158 MB / 0.6961 GB, free: 44.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003098/1.154, allocations: 15.84 kB / 0.6961 GB, free: 44.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002161/1.156, allocations: 284 kB / 0.6964 GB, free: 43.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002441/1.156, allocations: 293.4 kB / 0.6967 GB, free: 43.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01916/1.175, allocations: 7.441 MB / 0.7039 GB, free: 36.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05559/1.231, allocations: 29.65 MB / 0.7329 GB, free: 5.652 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2917/1.523, allocations: 12.05 MB / 0.7446 GB, free: 52.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005796/1.529, allocations: 3.296 MB / 0.7479 GB, free: 52.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/1.542, allocations: 7.108 MB / 0.7548 GB, free: 51.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/1.542, allocations: 77.38 kB / 0.7549 GB, free: 51.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=306): time 5.089e-06/1.542, allocations: 0 / 0.7549 GB, free: 51.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=325): time 0.02168/1.564, allocations: 11.95 MB / 0.7665 GB, free: 49.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/1.564, allocations: 91.5 kB / 0.7666 GB, free: 49.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005729/1.569, allocations: 3.462 MB / 0.77 GB, free: 49.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006705/1.57, allocations: 84.64 kB / 0.7701 GB, free: 49.37 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001925/1.572, allocations: 3.088 MB / 0.7731 GB, free: 48.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.573, allocations: 1.093 MB / 0.7742 GB, free: 47.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/1.573, allocations: 74.88 kB / 0.7743 GB, free: 47.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/1.574, allocations: 459.5 kB / 0.7747 GB, free: 47.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002879/1.576, allocations: 1.79 MB / 0.7764 GB, free: 47.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003163/1.58, allocations: 2.699 MB / 0.7791 GB, free: 46.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003127/1.583, allocations: 2.219 MB / 0.7812 GB, free: 46.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.116e-05/1.583, allocations: 7.312 kB / 0.7812 GB, free: 46.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.009844/1.593, allocations: 6.22 MB / 0.7873 GB, free: 45.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/1.593, allocations: 15.62 kB / 0.7873 GB, free: 45.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.337e-05/1.593, allocations: 29.81 kB / 0.7874 GB, free: 45.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002738/1.596, allocations: 1.254 MB / 0.7886 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/1.599, allocations: 0.8065 MB / 0.7894 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01638/1.615, allocations: 20.68 MB / 0.8096 GB, free: 29.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004344/1.62, allocations: 200.9 kB / 0.8098 GB, free: 29.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005493/1.62, allocations: 152.1 kB / 0.8099 GB, free: 29.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000798/1.621, allocations: 336.3 kB / 0.8102 GB, free: 29.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009153/1.622, allocations: 448.3 kB / 0.8107 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009526/1.632, allocations: 5.968 MB / 0.8165 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/1.632, allocations: 32.84 kB / 0.8165 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.808e-05/1.632, allocations: 18.61 kB / 0.8165 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.708e-05/1.632, allocations: 18.2 kB / 0.8166 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01967/1.651, allocations: 12.26 MB / 0.8285 GB, free: 21.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/1.651, allocations: 3.031 kB / 0.8285 GB, free: 21.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/1.653, allocations: 461.7 kB / 0.829 GB, free: 21.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003371/1.657, allocations: 1.609 MB / 0.8305 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002898/1.657, allocations: 79.36 kB / 0.8306 GB, free: 20.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02279/1.68, allocations: 30.14 MB / 0.8601 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/1.68, allocations: 9.188 kB / 0.8601 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/1.694, allocations: 8.849 MB / 0.8687 GB, free: 7.172 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003477/1.698, allocations: 0.9157 MB / 0.8696 GB, free: 6.613 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001146/1.699, allocations: 74.89 kB / 0.8697 GB, free: 6.566 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/1.701, allocations: 194.8 kB / 0.8699 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006963/1.702, allocations: 296.2 kB / 0.8701 GB, free: 6.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002161/1.702, allocations: 86.56 kB / 0.8702 GB, free: 6.461 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004362/1.707, allocations: 2.644 MB / 0.8728 GB, free: 5.438 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.707, allocations: 0 / 0.8728 GB, free: 5.438 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00581/1.712, allocations: 1.396 MB / 0.8742 GB, free: 4.922 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/1.714, allocations: 0.5952 MB / 0.8747 GB, free: 4.488 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00925/1.723, allocations: 6.178 MB / 0.8808 GB, free: 14.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.723, allocations: 0 / 0.8808 GB, free: 14.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0072/1.73, allocations: 4.68 MB / 0.8853 GB, free: 10.15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007568/1.738, allocations: 1.278 MB / 0.8866 GB, free: 9.172 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/1.763, allocations: 11.1 MB / 0.8974 GB, free: 15.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005353/1.768, allocations: 4.627 MB / 0.902 GB, free: 12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004289/1.773, allocations: 1.045 MB / 0.903 GB, free: 11.29 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009234/1.774, allocations: 269.5 kB / 0.9032 GB, free: 11.03 MB / 490.7 MB Notification: Performance of SimCode: time 1.273e-06/1.774, allocations: 0 / 0.9032 GB, free: 11.03 MB / 490.7 MB Notification: Performance of Templates: time 0.4196/2.193, allocations: 74.02 MB / 0.9755 GB, free: 91.34 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Start/IMS_Start.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches