Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|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.core.Phi.im|aimc.stator.core.Phi.re|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.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|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.core.Phi.im|aimc.stator.core.Phi.re|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.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007838/0.0007838, allocations: 99.92 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002108/0.0002108, allocations: 4 kB / 356.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.189, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.008965/0.198, allocations: 12.55 MB / 420.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006706/0.2048, allocations: 4.945 MB / 425.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.2061, allocations: 75.69 kB / 425.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002005/0.2082, allocations: 0.7885 MB / 426.4 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002752/0.2109, allocations: 1.174 MB / 427.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.2125, allocations: 0.7233 MB / 428.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003491/0.216, allocations: 4.451 MB / 432.8 MB, free: 2.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.2184, allocations: 2.768 MB / 435.5 MB, free: 80 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.2201, allocations: 1.389 MB / 436.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002107/0.2222, allocations: 1.848 MB / 438.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003889/0.2226, allocations: 224 kB / 439 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.2239, allocations: 0.6087 MB / 439.6 MB, free: 12 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007799/0.2247, allocations: 0.942 MB / 440.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001808/0.2265, allocations: 1.883 MB / 442.4 MB, free: 9.156 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004918/0.2314, allocations: 6.007 MB / 448.4 MB, free: 3.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.2315, allocations: 4 kB / 448.4 MB, free: 3.129 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2315, allocations: 0 / 448.4 MB, free: 3.129 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001024/0.2316, allocations: 0 / 448.4 MB, free: 3.129 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.008766/0.2403, allocations: 4.252 MB / 452.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2404, allocations: 8.031 kB / 452.7 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004071/0.2445, allocations: 0.9169 MB / 453.6 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004142/0.2486, allocations: 2.697 MB / 456.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.2488, allocations: 250.7 kB / 456.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000484/0.2493, allocations: 335.9 kB / 456.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007185/0.2565, allocations: 4.535 MB / 461.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-05/0.2566, allocations: 4 kB / 461.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002962/0.2569, allocations: 136 kB / 461.6 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.2571, allocations: 154.7 kB / 461.7 MB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00689/0.264, allocations: 3.915 MB / 465.6 MB, free: 1.727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02093/0.2849, allocations: 14.25 MB / 479.9 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/0.2916, allocations: 6.987 MB / 486.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.2944, allocations: 1.704 MB / 488.6 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007061/0.3015, allocations: 4.506 MB / 493.1 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.3015, allocations: 47.88 kB / 493.1 MB, free: 4.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 3.206e-06/0.3015, allocations: 0 / 493.1 MB, free: 4.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=185): time 0.0162/0.3177, allocations: 7.846 MB / 0.4892 GB, free: 12.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.3178, allocations: 69.41 kB / 0.4893 GB, free: 12.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004349/0.3222, allocations: 2.637 MB / 0.4919 GB, free: 10.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.3224, allocations: 57.7 kB / 0.4919 GB, free: 10.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.3235, allocations: 1.634 MB / 0.4935 GB, free: 8.531 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005403/0.3241, allocations: 0.616 MB / 0.4941 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.3242, allocations: 40 kB / 0.4941 GB, free: 7.867 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3244, allocations: 385.8 kB / 0.4945 GB, free: 7.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/0.3261, allocations: 0.9097 MB / 0.4954 GB, free: 6.574 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001869/0.328, allocations: 1.306 MB / 0.4967 GB, free: 5.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.3317, allocations: 2.371 MB / 0.499 GB, free: 2.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.3317, allocations: 0 / 0.499 GB, free: 2.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.1807/0.5124, allocations: 3.082 MB / 0.502 GB, free: 88.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.5124, allocations: 11.56 kB / 0.502 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/0.5125, allocations: 11.84 kB / 0.502 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/0.5141, allocations: 0.5563 MB / 0.5026 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/0.5161, allocations: 436.4 kB / 0.503 GB, free: 88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/0.5235, allocations: 6.95 MB / 0.5098 GB, free: 83.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.5251, allocations: 91.8 kB / 0.5099 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.5252, allocations: 79.02 kB / 0.5099 GB, free: 83.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * 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%) 6,(8,62.5%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00169/0.5269, allocations: 1.17 MB / 0.5111 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000393/0.5273, allocations: 252.3 kB / 0.5113 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/0.5323, allocations: 2.896 MB / 0.5141 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/0.5324, allocations: 22.42 kB / 0.5142 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.5324, allocations: 7.688 kB / 0.5142 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.5324, allocations: 11.06 kB / 0.5142 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00885/0.5413, allocations: 6.365 MB / 0.5204 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5413, allocations: 3.906 kB / 0.5204 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.5425, allocations: 284.8 kB / 0.5207 GB, free: 78.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001378/0.5439, allocations: 0.6104 MB / 0.5213 GB, free: 78.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.544, allocations: 49.48 kB / 0.5213 GB, free: 78.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008479/0.5525, allocations: 10.48 MB / 0.5316 GB, free: 68.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.5525, allocations: 7.969 kB / 0.5316 GB, free: 68.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005766/0.5583, allocations: 4.177 MB / 0.5356 GB, free: 64.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.5593, allocations: 0.547 MB / 0.5362 GB, free: 64.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.5596, allocations: 45.77 kB / 0.5362 GB, free: 64.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5607, allocations: 88.72 kB / 0.5363 GB, free: 63.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/0.561, allocations: 137.8 kB / 0.5364 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.5611, allocations: 55.92 kB / 0.5365 GB, free: 63.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002195/0.5633, allocations: 1.843 MB / 0.5383 GB, free: 61.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.021e-06/0.5634, allocations: 0 / 0.5383 GB, free: 61.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002247/0.5656, allocations: 0.7022 MB / 0.539 GB, free: 61.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009908/0.5666, allocations: 459.2 kB / 0.5394 GB, free: 60.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004337/0.571, allocations: 2.848 MB / 0.5422 GB, free: 58.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.571, allocations: 0 / 0.5422 GB, free: 58.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002485/0.5735, allocations: 1.939 MB / 0.5441 GB, free: 56.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/0.5764, allocations: 0.5737 MB / 0.5446 GB, free: 55.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/0.5864, allocations: 8.411 MB / 0.5529 GB, free: 47.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/0.5881, allocations: 2.577 MB / 0.5554 GB, free: 44.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.5888, allocations: 187.4 kB / 0.5556 GB, free: 44.27 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5889, allocations: 0 / 0.5556 GB, free: 44.27 MB / 378.7 MB Notification: Performance of Templates: time 0.09651/0.6854, allocations: 100.4 MB / 0.6536 GB, free: 7.961 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches