Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001091, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001222, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.94 kB / 306.9 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1056, allocations: 50.53 MB / 357.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2178/0.3235, allocations: 32.92 MB / 390.4 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02342/0.347, allocations: 9.154 MB / 399.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01069/0.3577, allocations: 233.9 kB / 399.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01931/0.3771, allocations: 7.475 MB / 407.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01558/0.3927, allocations: 3.356 MB / 410.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007984/0.4007, allocations: 2.002 MB / 412.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01994/0.4207, allocations: 13.55 MB / 426.1 MB, free: 8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03012/0.4509, allocations: 18.27 MB / 444.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009682/0.4606, allocations: 5.486 MB / 449.9 MB, free: 76 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01154/0.4721, allocations: 6.788 MB / 456.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004597/0.4768, allocations: 1.148 MB / 457.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006977/0.4838, allocations: 1.55 MB / 459.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006091/0.4899, allocations: 2.987 MB / 462.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01516/0.5051, allocations: 6.34 MB / 468.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02449/0.5296, allocations: 21.72 MB / 490.4 MB, free: 7.426 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5296, allocations: 3.938 kB / 490.4 MB, free: 7.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5296, allocations: 7.938 kB / 490.5 MB, free: 7.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006801/0.5303, allocations: 0 / 490.5 MB, free: 7.414 MB / 398.1 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.04549/0.5758, allocations: 14.67 MB / 0.4933 GB, free: 8.625 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5759, allocations: 8.031 kB / 0.4933 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03846/0.6144, allocations: 6.784 MB / 0.4999 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01726/0.6317, allocations: 7.87 MB / 0.5076 GB, free: 9.863 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009222/0.6326, allocations: 0.7986 MB / 0.5084 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004538/0.6372, allocations: 1.054 MB / 0.5094 GB, free: 8.008 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04423/0.6814, allocations: 17.22 MB / 0.5262 GB, free: 6.715 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005573/0.682, allocations: 11.91 kB / 0.5262 GB, free: 6.703 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003765/0.6858, allocations: 444 kB / 0.5267 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007053/0.6866, allocations: 0.6314 MB / 0.5273 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3911/1.078, allocations: 16.29 MB / 0.5432 GB, free: 122.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.084/1.162, allocations: 56.99 MB / 0.5988 GB, free: 81.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02011/1.182, allocations: 31.39 MB / 0.6295 GB, free: 46.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005964/1.188, allocations: 4.37 MB / 0.6338 GB, free: 42.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/1.204, allocations: 10.76 MB / 0.6443 GB, free: 31.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/1.204, allocations: 77.81 kB / 0.6443 GB, free: 31.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=398): time 5.39e-06/1.204, allocations: 0 / 0.6443 GB, free: 31.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=423): time 0.04197/1.246, allocations: 21.53 MB / 0.6654 GB, free: 9.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.246, allocations: 120.7 kB / 0.6655 GB, free: 9.109 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/1.252, allocations: 4.703 MB / 0.6701 GB, free: 4.398 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008162/1.253, allocations: 101.6 kB / 0.6702 GB, free: 4.293 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/1.255, allocations: 4.673 MB / 0.6747 GB, free: 15.58 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001882/1.257, allocations: 1.449 MB / 0.6762 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001989/1.259, allocations: 1.132 MB / 0.6773 GB, free: 13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/1.259, allocations: 301.1 kB / 0.6775 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004632/1.264, allocations: 2.908 MB / 0.6804 GB, free: 9.785 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006285/1.27, allocations: 4.953 MB / 0.6852 GB, free: 3.906 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/1.282, allocations: 8.341 MB / 0.6934 GB, free: 10.63 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.76e-05/1.282, allocations: 23.94 kB / 0.6934 GB, free: 10.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01866/1.3, allocations: 9.738 MB / 0.7029 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.933e-05/1.3, allocations: 36 kB / 0.7029 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/1.301, allocations: 64 kB / 0.703 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005173/1.306, allocations: 1.655 MB / 0.7046 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005568/1.311, allocations: 1.31 MB / 0.7059 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2348/1.546, allocations: 16.46 MB / 0.722 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/1.552, allocations: 334.2 kB / 0.7223 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001298/1.553, allocations: 284.7 kB / 0.7226 GB, free: 153.8 MB / 494.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008181/1.561, allocations: 3.899 MB / 0.7264 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001483/1.563, allocations: 0.4902 MB / 0.7268 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0152/1.578, allocations: 7.791 MB / 0.7344 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.677e-05/1.578, allocations: 42.66 kB / 0.7345 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.716e-05/1.578, allocations: 17.08 kB / 0.7345 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.785e-05/1.578, allocations: 21.58 kB / 0.7345 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03259/1.611, allocations: 17.48 MB / 0.7516 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-05/1.611, allocations: 5.875 kB / 0.7516 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003263/1.614, allocations: 0.7263 MB / 0.7523 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004015/1.618, allocations: 1.552 MB / 0.7538 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007172/1.619, allocations: 101 kB / 0.7539 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/1.637, allocations: 19.5 MB / 0.773 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.637, allocations: 11.34 kB / 0.773 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01631/1.653, allocations: 11.45 MB / 0.7842 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/1.657, allocations: 1.156 MB / 0.7853 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001565/1.658, allocations: 90.98 kB / 0.7854 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003586/1.662, allocations: 231.8 kB / 0.7856 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/1.663, allocations: 324.1 kB / 0.7859 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004013/1.664, allocations: 134 kB / 0.786 GB, free: 119.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005398/1.669, allocations: 3.189 MB / 0.7891 GB, free: 117.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.669, allocations: 0 / 0.7891 GB, free: 117.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008471/1.678, allocations: 1.88 MB / 0.791 GB, free: 115.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/1.679, allocations: 290 kB / 0.7913 GB, free: 114.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.691, allocations: 8.11 MB / 0.7992 GB, free: 107.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/1.691, allocations: 4 kB / 0.7992 GB, free: 107.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007177/1.698, allocations: 4.636 MB / 0.8037 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007287/1.706, allocations: 1.239 MB / 0.8049 GB, free: 101.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03342/1.739, allocations: 23.64 MB / 0.828 GB, free: 77.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007288/1.746, allocations: 6.575 MB / 0.8344 GB, free: 71.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002562/1.749, allocations: 427.4 kB / 0.8348 GB, free: 70.69 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/1.749, allocations: 0 / 0.8348 GB, free: 70.69 MB / 494.1 MB Notification: Performance of Templates: time 1.033/2.782, allocations: 461.6 MB / 1.286 GB, free: 166.6 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches