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.001419/0.001419, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001652/0.001652, allocations: 187.1 kB / 18.67 MB, free: 4.441 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.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 47.92 kB / 352 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3629, allocations: 49.43 MB / 401.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.033/0.396, allocations: 32.86 MB / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02118/0.4172, allocations: 8.967 MB / 443.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008171/0.4254, allocations: 235.2 kB / 443.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0193/0.4447, allocations: 7.947 MB / 451.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01468/0.4594, allocations: 3.659 MB / 455.1 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007142/0.4666, allocations: 2.09 MB / 457.2 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01895/0.4856, allocations: 13 MB / 470.2 MB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03179/0.5174, allocations: 22.49 MB / 492.7 MB, free: 13.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01061/0.528, allocations: 6.58 MB / 499.3 MB, free: 6.582 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01241/0.5405, allocations: 7.214 MB / 0.4946 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005935/0.5464, allocations: 1.879 MB / 0.4964 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.5566, allocations: 2.238 MB / 0.4986 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006708/0.5634, allocations: 3.749 MB / 0.5023 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01543/0.5788, allocations: 7.101 MB / 0.5092 GB, free: 348 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03365/0.6125, allocations: 24.99 MB / 0.5336 GB, free: 7.273 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.6126, allocations: 4 kB / 0.5336 GB, free: 7.27 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.6126, allocations: 0 / 0.5336 GB, free: 7.27 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009971/0.6136, allocations: 0 / 0.5336 GB, free: 7.27 MB / 462.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.5743/1.188, allocations: 14.57 MB / 0.5479 GB, free: 114 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/1.188, allocations: 7.906 kB / 0.5479 GB, free: 114 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0374/1.225, allocations: 6.8 MB / 0.5545 GB, free: 110.9 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01952/1.245, allocations: 8.069 MB / 0.5624 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009418/1.246, allocations: 0.79 MB / 0.5632 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005694/1.252, allocations: 1.054 MB / 0.5642 GB, free: 102.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04944/1.301, allocations: 17.22 MB / 0.581 GB, free: 85.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006197/1.302, allocations: 7.906 kB / 0.581 GB, free: 85.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004706/1.306, allocations: 454.6 kB / 0.5814 GB, free: 85.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006463/1.307, allocations: 0.6314 MB / 0.5821 GB, free: 84.46 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03649/1.344, allocations: 16.3 MB / 0.598 GB, free: 68.13 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09852/1.442, allocations: 55.15 MB / 0.6518 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02981/1.472, allocations: 31.09 MB / 0.6822 GB, free: 9.266 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008042/1.48, allocations: 4.3 MB / 0.6864 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02548/1.506, allocations: 10.42 MB / 0.6966 GB, free: 10.47 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.647e-05/1.506, allocations: 77.81 kB / 0.6966 GB, free: 10.38 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=398): time 5.701e-06/1.506, allocations: 0 / 0.6966 GB, free: 10.38 MB / 0.4982 GB Notification: Performance of matching and sorting (n=423): time 0.05794/1.564, allocations: 21.57 MB / 0.7177 GB, free: 4.41 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/1.564, allocations: 132.6 kB / 0.7178 GB, free: 4.262 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.011/1.575, allocations: 4.669 MB / 0.7224 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.576, allocations: 97.7 kB / 0.7225 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003949/1.58, allocations: 4.654 MB / 0.727 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002333/1.582, allocations: 1.448 MB / 0.7284 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004242/1.587, allocations: 1.128 MB / 0.7295 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.587, allocations: 313.1 kB / 0.7298 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005515/1.592, allocations: 2.904 MB / 0.7327 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007576/1.6, allocations: 4.945 MB / 0.7375 GB, free: 15.07 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0134/1.613, allocations: 8.337 MB / 0.7456 GB, free: 5.789 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/1.613, allocations: 16 kB / 0.7457 GB, free: 5.773 MB / 0.545 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.3463/1.96, allocations: 9.729 MB / 0.7552 GB, free: 190.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.383e-05/1.96, allocations: 35.53 kB / 0.7552 GB, free: 190.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/1.96, allocations: 63.25 kB / 0.7553 GB, free: 190.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004288/1.964, allocations: 1.652 MB / 0.7569 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005256/1.97, allocations: 1.322 MB / 0.7582 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0198/1.989, allocations: 17.75 MB / 0.7755 GB, free: 179.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006235/1.996, allocations: 327 kB / 0.7758 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.997, allocations: 284 kB / 0.7761 GB, free: 179.7 MB / 0.545 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 () * 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.007752/2.005, allocations: 3.884 MB / 0.7799 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/2.006, allocations: 493.8 kB / 0.7803 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01376/2.02, allocations: 7.793 MB / 0.788 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.152e-05/2.02, allocations: 41.75 kB / 0.788 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.64e-05/2.02, allocations: 22.5 kB / 0.788 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-05/2.02, allocations: 23.02 kB / 0.788 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0313/2.051, allocations: 17.45 MB / 0.8051 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/2.051, allocations: 6.438 kB / 0.8051 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/2.055, allocations: 0.73 MB / 0.8058 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003843/2.058, allocations: 1.552 MB / 0.8073 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005568/2.059, allocations: 99.97 kB / 0.8074 GB, free: 159.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02045/2.079, allocations: 21.21 MB / 0.8281 GB, free: 137.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/2.08, allocations: 11.92 kB / 0.8281 GB, free: 137.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/2.098, allocations: 11.44 MB / 0.8393 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004282/2.103, allocations: 1.149 MB / 0.8404 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001864/2.104, allocations: 94.28 kB / 0.8405 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003737/2.108, allocations: 235.7 kB / 0.8407 GB, free: 124.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/2.109, allocations: 327.3 kB / 0.841 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004781/2.11, allocations: 132 kB / 0.8412 GB, free: 124.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006644/2.116, allocations: 3.169 MB / 0.8443 GB, free: 121.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.5e-07/2.116, allocations: 7.75 kB / 0.8443 GB, free: 121.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009271/2.126, allocations: 1.863 MB / 0.8461 GB, free: 119.5 MB / 0.545 GB 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.001083/2.127, allocations: 279.8 kB / 0.8464 GB, free: 119.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01505/2.142, allocations: 8.135 MB / 0.8543 GB, free: 111 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-05/2.142, allocations: 4.938 kB / 0.8543 GB, free: 111 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007942/2.15, allocations: 4.642 MB / 0.8588 GB, free: 106.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/2.16, allocations: 1.303 MB / 0.8601 GB, free: 105 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03934/2.2, allocations: 18.82 MB / 0.8785 GB, free: 86.08 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006481/2.206, allocations: 6.551 MB / 0.8849 GB, free: 79.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002136/2.208, allocations: 431.3 kB / 0.8853 GB, free: 79.07 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/2.208, allocations: 0 / 0.8853 GB, free: 79.07 MB / 0.545 GB Notification: Performance of Templates: time 1.045/3.253, allocations: 462.6 MB / 1.337 GB, free: 54.37 MB / 0.5763 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/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_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