Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009914/0.0009914, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008033/0.0008033, allocations: 97.7 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002203/0.0002205, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.198, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.008729/0.2068, allocations: 11.85 MB / 419.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006107/0.2129, allocations: 4.146 MB / 423.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.2143, allocations: 71.75 kB / 423.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.2158, allocations: 0.7418 MB / 424.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001944/0.2178, allocations: 1.045 MB / 425.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.2189, allocations: 0.6026 MB / 426 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002842/0.2218, allocations: 4.112 MB / 430.1 MB, free: 5.215 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.2237, allocations: 2.229 MB / 432.3 MB, free: 2.953 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.225, allocations: 1.284 MB / 433.6 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.2263, allocations: 1.638 MB / 435.2 MB, free: 20 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003423/0.2267, allocations: 212 kB / 435.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009433/0.2276, allocations: 415.7 kB / 435.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006128/0.2282, allocations: 0.7745 MB / 436.6 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006601/0.2289, allocations: 0.746 MB / 437.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004493/0.2334, allocations: 5.563 MB / 442.9 MB, free: 8.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2334, allocations: 0 / 442.9 MB, free: 8.297 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2334, allocations: 0 / 442.9 MB, free: 8.297 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.932e-05/0.2335, allocations: 0 / 442.9 MB, free: 8.297 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008216/0.2418, allocations: 3.786 MB / 446.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2418, allocations: 12.03 kB / 446.7 MB, free: 4.426 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004171/0.246, allocations: 0.8505 MB / 447.6 MB, free: 3.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003561/0.2496, allocations: 2.319 MB / 449.9 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.2497, allocations: 230.3 kB / 450.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/0.2502, allocations: 319.9 kB / 450.4 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006597/0.2568, allocations: 4.238 MB / 454.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/0.2568, allocations: 7.906 kB / 454.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002799/0.2571, allocations: 124 kB / 454.8 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.2573, allocations: 146.2 kB / 454.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005907/0.2632, allocations: 3.659 MB / 458.6 MB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0187/0.2819, allocations: 13.64 MB / 472.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005802/0.2877, allocations: 6.871 MB / 479.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.29, allocations: 1.425 MB / 480.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005663/0.2957, allocations: 3.892 MB / 484.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2957, allocations: 51.5 kB / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=124): time 2.896e-06/0.2957, allocations: 0 / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=144): time 0.01272/0.3085, allocations: 6.747 MB / 491.2 MB, free: 6.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.3085, allocations: 72.66 kB / 491.3 MB, free: 6.082 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/0.3111, allocations: 1.868 MB / 493.2 MB, free: 4.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.706e-05/0.3112, allocations: 49.7 kB / 493.2 MB, free: 4.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.3122, allocations: 1.424 MB / 494.6 MB, free: 2.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003587/0.3126, allocations: 0.489 MB / 495.1 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.199e-05/0.3127, allocations: 36 kB / 495.2 MB, free: 2.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3128, allocations: 369.9 kB / 495.5 MB, free: 1.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.314, allocations: 0.7652 MB / 496.3 MB, free: 1.055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001361/0.3153, allocations: 1.22 MB / 497.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.3167, allocations: 0.9785 MB / 498.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3167, allocations: 4 kB / 498.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004074/0.3208, allocations: 2.663 MB / 0.4894 GB, free: 11.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3208, allocations: 12 kB / 0.4894 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.3208, allocations: 12 kB / 0.4894 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.3221, allocations: 0.4895 MB / 0.4899 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.3235, allocations: 391.4 kB / 0.4903 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007266/0.3308, allocations: 6.395 MB / 0.4965 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.3321, allocations: 79.86 kB / 0.4966 GB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3323, allocations: 72 kB / 0.4967 GB, free: 4.262 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,61.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001645/0.3339, allocations: 1.052 MB / 0.4977 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.3342, allocations: 189.7 kB / 0.4979 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003886/0.3381, allocations: 2.519 MB / 0.5003 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.3381, allocations: 19.94 kB / 0.5004 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3381, allocations: 4 kB / 0.5004 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3381, allocations: 3.984 kB / 0.5004 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1663/0.5044, allocations: 5.545 MB / 0.5058 GB, free: 87.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.5045, allocations: 3.844 kB / 0.5058 GB, free: 87.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000963/0.5055, allocations: 220.1 kB / 0.506 GB, free: 87.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.5066, allocations: 0.4925 MB / 0.5065 GB, free: 87.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.33e-05/0.5067, allocations: 35.17 kB / 0.5065 GB, free: 87.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007534/0.5142, allocations: 10.46 MB / 0.5167 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5143, allocations: 6.75 kB / 0.5167 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004542/0.5188, allocations: 3.579 MB / 0.5202 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000649/0.5195, allocations: 458.5 kB / 0.5207 GB, free: 76.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.5197, allocations: 35.08 kB / 0.5207 GB, free: 76.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008757/0.5206, allocations: 73.25 kB / 0.5208 GB, free: 76.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.5208, allocations: 109.8 kB / 0.5209 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.097e-05/0.5208, allocations: 44.86 kB / 0.5209 GB, free: 76.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001443/0.5223, allocations: 1.281 MB / 0.5222 GB, free: 76.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5223, allocations: 0 / 0.5222 GB, free: 76.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001556/0.5239, allocations: 0.5919 MB / 0.5227 GB, free: 76.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002548/0.5241, allocations: 188.1 kB / 0.5229 GB, free: 76.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003054/0.5272, allocations: 2.392 MB / 0.5253 GB, free: 74.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5272, allocations: 0 / 0.5253 GB, free: 74.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.5291, allocations: 1.742 MB / 0.527 GB, free: 73.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/0.5309, allocations: 0.5123 MB / 0.5275 GB, free: 72.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007234/0.5382, allocations: 7.096 MB / 0.5344 GB, free: 65.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.5396, allocations: 2.328 MB / 0.5367 GB, free: 63.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004025/0.54, allocations: 143.4 kB / 0.5368 GB, free: 63.05 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.54, allocations: 0 / 0.5368 GB, free: 63.05 MB / 378.7 MB Notification: Performance of Templates: time 0.07542/0.6154, allocations: 97.6 MB / 0.6321 GB, free: 13.49 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.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/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches