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.001243/0.001243, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.328/1.328, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 101.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000971/0.0009711, allocations: 39.94 kB / 350.1 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2907, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.02608/0.3168, allocations: 32.28 MB / 431.8 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02275/0.3397, allocations: 8.889 MB / 440.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009605/0.3493, allocations: 231.2 kB / 440.9 MB, free: 7.812 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01933/0.3687, allocations: 7.453 MB / 448.3 MB, free: 352 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01491/0.3836, allocations: 3.343 MB / 451.7 MB, free: 12.99 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007072/0.3907, allocations: 1.944 MB / 453.6 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02141/0.4121, allocations: 13.52 MB / 467.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03277/0.445, allocations: 18.27 MB / 485.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01079/0.4558, allocations: 5.51 MB / 490.9 MB, free: 5.539 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01314/0.469, allocations: 6.784 MB / 497.7 MB, free: 14.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004867/0.4739, allocations: 1.148 MB / 498.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007924/0.4818, allocations: 1.507 MB / 0.4886 GB, free: 12.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006124/0.488, allocations: 2.995 MB / 0.4916 GB, free: 9.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01485/0.5029, allocations: 6.324 MB / 0.4977 GB, free: 2.719 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2942/0.7971, allocations: 24.35 MB / 0.5215 GB, free: 38.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.7972, allocations: 0 / 0.5215 GB, free: 38.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.7972, allocations: 0 / 0.5215 GB, free: 38.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009127/0.7981, allocations: 3.125 kB / 0.5215 GB, free: 38.02 MB / 378.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.05569/0.8538, allocations: 14.62 MB / 0.5358 GB, free: 31.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.8539, allocations: 7.75 kB / 0.5358 GB, free: 31.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03694/0.8908, allocations: 6.744 MB / 0.5424 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02181/0.9127, allocations: 7.838 MB / 0.55 GB, free: 24.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009802/0.9137, allocations: 0.7962 MB / 0.5508 GB, free: 23.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00641/0.9201, allocations: 1.047 MB / 0.5518 GB, free: 22.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05326/0.9734, allocations: 17.22 MB / 0.5687 GB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007319/0.9742, allocations: 23.8 kB / 0.5687 GB, free: 5.082 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005078/0.9793, allocations: 443.5 kB / 0.5691 GB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006197/0.9799, allocations: 0.6275 MB / 0.5697 GB, free: 4.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0383/1.018, allocations: 16.29 MB / 0.5856 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1157/1.134, allocations: 55.82 MB / 0.6401 GB, free: 11.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03035/1.164, allocations: 31.08 MB / 0.6705 GB, free: 8.828 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007472/1.172, allocations: 4.34 MB / 0.6747 GB, free: 4.496 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2579/1.43, allocations: 10.46 MB / 0.6849 GB, free: 173.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.251e-05/1.43, allocations: 78.12 kB / 0.685 GB, free: 173.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=398): time 6.843e-06/1.43, allocations: 0 / 0.685 GB, free: 173.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=423): time 0.05138/1.481, allocations: 21.57 MB / 0.7061 GB, free: 165.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/1.482, allocations: 123.7 kB / 0.7062 GB, free: 165.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007505/1.489, allocations: 4.672 MB / 0.7108 GB, free: 163.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000996/1.49, allocations: 97.08 kB / 0.7109 GB, free: 163.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/1.492, allocations: 4.657 MB / 0.7154 GB, free: 159.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001649/1.494, allocations: 1.448 MB / 0.7168 GB, free: 158.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001725/1.496, allocations: 1.135 MB / 0.7179 GB, free: 157.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.013e-05/1.496, allocations: 305.1 kB / 0.7182 GB, free: 157 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003776/1.5, allocations: 2.909 MB / 0.7211 GB, free: 154.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/1.504, allocations: 4.941 MB / 0.7259 GB, free: 149.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009071/1.513, allocations: 8.345 MB / 0.734 GB, free: 140.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.381e-05/1.513, allocations: 23.94 kB / 0.7341 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01661/1.53, allocations: 9.729 MB / 0.7436 GB, free: 132 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.971e-05/1.53, allocations: 32.62 kB / 0.7436 GB, free: 131.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/1.53, allocations: 64 kB / 0.7436 GB, free: 131.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004355/1.535, allocations: 1.648 MB / 0.7453 GB, free: 130.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005308/1.54, allocations: 1.318 MB / 0.7465 GB, free: 128.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/1.561, allocations: 16.47 MB / 0.7626 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006572/1.567, allocations: 327.7 kB / 0.7629 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001701/1.569, allocations: 280 kB / 0.7632 GB, free: 111.3 MB / 490.7 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.008574/1.578, allocations: 3.891 MB / 0.767 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.579, allocations: 0.4939 MB / 0.7675 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/1.592, allocations: 7.779 MB / 0.7751 GB, free: 99.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/1.592, allocations: 48 kB / 0.7751 GB, free: 98.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.714e-05/1.592, allocations: 16 kB / 0.7751 GB, free: 98.96 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.283e-05/1.592, allocations: 23.91 kB / 0.7752 GB, free: 98.94 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02963/1.621, allocations: 17.46 MB / 0.7922 GB, free: 81.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/1.621, allocations: 7.75 kB / 0.7922 GB, free: 81.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003309/1.625, allocations: 0.7339 MB / 0.7929 GB, free: 80.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004145/1.629, allocations: 1.548 MB / 0.7945 GB, free: 79.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008809/1.63, allocations: 104 kB / 0.7946 GB, free: 78.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01901/1.649, allocations: 19.52 MB / 0.8136 GB, free: 58.51 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.649, allocations: 8 kB / 0.8136 GB, free: 58.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3403/1.989, allocations: 57.67 MB / 0.8699 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003839/1.993, allocations: 1.147 MB / 0.8711 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/1.995, allocations: 90.5 kB / 0.8711 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003539/1.998, allocations: 238.2 kB / 0.8714 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009491/1.999, allocations: 330 kB / 0.8717 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003313/1.999, allocations: 130.9 kB / 0.8718 GB, free: 147.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005362/2.005, allocations: 3.17 MB / 0.8749 GB, free: 147.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.9e-07/2.005, allocations: 2.969 kB / 0.8749 GB, free: 147.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01004/2.015, allocations: 2.348 MB / 0.8772 GB, free: 147.7 MB / 490.7 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.001228/2.016, allocations: 270.2 kB / 0.8775 GB, free: 147.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01327/2.029, allocations: 8.107 MB / 0.8854 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.03, allocations: 5.25 kB / 0.8854 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007093/2.037, allocations: 4.642 MB / 0.8899 GB, free: 144.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006929/2.044, allocations: 1.237 MB / 0.8911 GB, free: 144 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04232/2.086, allocations: 28.11 MB / 0.9186 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01307/2.099, allocations: 6.91 MB / 0.9253 GB, free: 116.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006765/2.106, allocations: 1.868 MB / 0.9271 GB, free: 115.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/2.108, allocations: 386.5 kB / 0.9275 GB, free: 115.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/2.108, allocations: 0 / 0.9275 GB, free: 115.2 MB / 490.7 MB Notification: Performance of Templates: time 0.1467/2.254, allocations: 95.61 MB / 1.021 GB, free: 23.79 MB / 490.7 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@2/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