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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001468, allocations: 108.6 kB / 16.62 MB, free: 6.809 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.001587/0.001587, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.295/1.295, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009622/0.0009622, allocations: 42.39 kB / 300.2 MB, free: 5.945 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09012, allocations: 49.45 MB / 349.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.1959/0.2861, allocations: 32.27 MB / 381.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02271/0.3088, allocations: 8.849 MB / 390.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009151/0.318, allocations: 226.5 kB / 391 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01717/0.3353, allocations: 7.471 MB / 398.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.3484, allocations: 3.318 MB / 401.7 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007057/0.3555, allocations: 1.934 MB / 403.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01812/0.3736, allocations: 13.12 MB / 416.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02929/0.403, allocations: 25.15 MB / 441.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008356/0.4114, allocations: 6.467 MB / 448.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009517/0.4209, allocations: 7.265 MB / 455.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002983/0.4239, allocations: 1.879 MB / 457.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004466/0.4284, allocations: 2.242 MB / 459.8 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003008/0.4314, allocations: 3.753 MB / 463.5 MB, free: 4.328 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008755/0.4402, allocations: 7.094 MB / 470.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02243/0.4626, allocations: 24.84 MB / 495.5 MB, free: 4.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.4627, allocations: 0 / 495.5 MB, free: 4.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4627, allocations: 0 / 495.5 MB, free: 4.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006662/0.4634, allocations: 0 / 495.5 MB, free: 4.301 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.03823/0.5016, allocations: 14.62 MB / 0.4981 GB, free: 5.566 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.5017, allocations: 8.031 kB / 0.4981 GB, free: 5.559 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03763/0.5393, allocations: 6.753 MB / 0.5047 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0156/0.5549, allocations: 7.83 MB / 0.5124 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007662/0.5557, allocations: 0.7947 MB / 0.5132 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003743/0.5595, allocations: 1.058 MB / 0.5142 GB, free: 5.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3219/0.8814, allocations: 17.22 MB / 0.531 GB, free: 111.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002407/0.8817, allocations: 13.94 kB / 0.531 GB, free: 111.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/0.8829, allocations: 441 kB / 0.5314 GB, free: 111.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005353/0.8834, allocations: 0.629 MB / 0.5321 GB, free: 111.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.024/0.9074, allocations: 16.29 MB / 0.548 GB, free: 104.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0619/0.9693, allocations: 55.81 MB / 0.6025 GB, free: 53.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01949/0.9889, allocations: 31.09 MB / 0.6328 GB, free: 19.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005176/0.9941, allocations: 4.329 MB / 0.6371 GB, free: 14.81 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01463/1.009, allocations: 10.48 MB / 0.6473 GB, free: 4.359 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/1.009, allocations: 69.81 kB / 0.6473 GB, free: 4.281 MB / 430.1 MB Notification: Performance of pre-optimization done (n=398): time 5.3e-06/1.009, allocations: 0 / 0.6473 GB, free: 4.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=423): time 0.04312/1.052, allocations: 21.57 MB / 0.6684 GB, free: 14.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/1.052, allocations: 124.7 kB / 0.6685 GB, free: 14.21 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007827/1.06, allocations: 4.677 MB / 0.6731 GB, free: 9.523 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000315/1.06, allocations: 89.7 kB / 0.6732 GB, free: 9.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003339/1.064, allocations: 4.664 MB / 0.6777 GB, free: 4.734 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.065, allocations: 1.444 MB / 0.6792 GB, free: 3.301 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002138/1.067, allocations: 1.132 MB / 0.6803 GB, free: 2.156 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/1.067, allocations: 305.1 kB / 0.6805 GB, free: 1.855 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004639/1.072, allocations: 2.912 MB / 0.6834 GB, free: 14.94 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005492/1.078, allocations: 4.945 MB / 0.6882 GB, free: 9.062 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1789/1.256, allocations: 8.34 MB / 0.6964 GB, free: 144.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.617e-05/1.257, allocations: 19.84 kB / 0.6964 GB, free: 144.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01849/1.275, allocations: 9.731 MB / 0.7059 GB, free: 142 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/1.275, allocations: 31.5 kB / 0.7059 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/1.275, allocations: 66.19 kB / 0.706 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004749/1.28, allocations: 1.653 MB / 0.7076 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005164/1.285, allocations: 1.32 MB / 0.7089 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01942/1.305, allocations: 17.77 MB / 0.7262 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/1.309, allocations: 322.7 kB / 0.7265 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004864/1.31, allocations: 283.6 kB / 0.7268 GB, free: 130.1 MB / 478.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.004731/1.314, allocations: 3.887 MB / 0.7306 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008963/1.315, allocations: 499.8 kB / 0.7311 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.326, allocations: 7.784 MB / 0.7387 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/1.326, allocations: 42.81 kB / 0.7387 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.964e-05/1.327, allocations: 15.62 kB / 0.7387 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.781e-05/1.327, allocations: 26.52 kB / 0.7388 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02217/1.349, allocations: 17.46 MB / 0.7558 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/1.349, allocations: 6.906 kB / 0.7558 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/1.352, allocations: 0.7242 MB / 0.7565 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003632/1.355, allocations: 1.561 MB / 0.7581 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002781/1.356, allocations: 105.7 kB / 0.7582 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01764/1.373, allocations: 21.23 MB / 0.7789 GB, free: 95.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.373, allocations: 12.56 kB / 0.7789 GB, free: 95.45 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/1.387, allocations: 11.44 MB / 0.7901 GB, free: 83.97 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/1.389, allocations: 1.15 MB / 0.7912 GB, free: 82.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/1.39, allocations: 95.44 kB / 0.7913 GB, free: 82.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.392, allocations: 231.8 kB / 0.7915 GB, free: 82.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006587/1.393, allocations: 323.4 kB / 0.7918 GB, free: 82.17 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/1.393, allocations: 136 kB / 0.792 GB, free: 82.04 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003501/1.396, allocations: 3.166 MB / 0.795 GB, free: 78.87 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.396, allocations: 0 / 0.795 GB, free: 78.87 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005637/1.402, allocations: 1.866 MB / 0.7969 GB, free: 77.01 MB / 478.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.0005249/1.403, allocations: 281.3 kB / 0.7971 GB, free: 76.73 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02045/1.423, allocations: 11.59 MB / 0.8085 GB, free: 65.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.423, allocations: 4 kB / 0.8085 GB, free: 65.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005821/1.429, allocations: 4.637 MB / 0.813 GB, free: 60.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0053/1.434, allocations: 1.295 MB / 0.8143 GB, free: 59.15 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/1.462, allocations: 23.86 MB / 0.8376 GB, free: 35.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006948/1.469, allocations: 6.755 MB / 0.8442 GB, free: 28.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005383/1.474, allocations: 1.865 MB / 0.846 GB, free: 26.53 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.476, allocations: 379.4 kB / 0.8463 GB, free: 26.16 MB / 478.1 MB Notification: Performance of SimCode: time 6.21e-07/1.476, allocations: 0 / 0.8463 GB, free: 26.16 MB / 478.1 MB Notification: Performance of Templates: time 0.3597/1.835, allocations: 84.9 MB / 0.9292 GB, free: 105.2 MB / 478.1 MB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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