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.00153/0.00153, allocations: 192 kB / 17.37 MB, free: 4.406 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.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007196/0.0007196, allocations: 97.03 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002159/0.000216, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.185, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.008506/0.1935, allocations: 11.88 MB / 419.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005842/0.1994, allocations: 4.155 MB / 424.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.2008, allocations: 67.75 kB / 424.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.2025, allocations: 0.7457 MB / 424.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002391/0.2049, allocations: 1.049 MB / 426 MB, free: 9.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.2063, allocations: 0.6074 MB / 426.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003729/0.21, allocations: 4.164 MB / 430.7 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002452/0.2125, allocations: 2.695 MB / 433.4 MB, free: 2.223 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.214, allocations: 1.276 MB / 434.7 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0018/0.2158, allocations: 1.642 MB / 436.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000406/0.2162, allocations: 208 kB / 436.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2173, allocations: 431.7 kB / 437 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000631/0.218, allocations: 0.7668 MB / 437.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.2197, allocations: 1.689 MB / 439.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004671/0.2244, allocations: 5.571 MB / 445 MB, free: 6.609 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.2244, allocations: 8 kB / 445 MB, free: 6.602 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2244, allocations: 0 / 445 MB, free: 6.602 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001309/0.2246, allocations: 0 / 445 MB, free: 6.602 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.009152/0.2337, allocations: 3.753 MB / 448.8 MB, free: 2.777 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2338, allocations: 15.97 kB / 448.8 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00453/0.2383, allocations: 0.8476 MB / 449.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004141/0.2425, allocations: 2.374 MB / 452 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.2427, allocations: 238.5 kB / 452.2 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000571/0.2433, allocations: 315.8 kB / 452.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007035/0.2503, allocations: 4.242 MB / 456.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.529e-05/0.2504, allocations: 3.906 kB / 456.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002902/0.2507, allocations: 128 kB / 456.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001295/0.2508, allocations: 146.2 kB / 457 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006411/0.2572, allocations: 3.655 MB / 460.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/0.2772, allocations: 13.65 MB / 474.4 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005717/0.283, allocations: 6.866 MB / 481.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002281/0.2853, allocations: 1.426 MB / 482.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005743/0.2911, allocations: 3.896 MB / 486.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/0.2911, allocations: 55.55 kB / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=124): time 2.966e-06/0.2912, allocations: 0 / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=144): time 0.01276/0.3039, allocations: 6.7 MB / 493.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.304, allocations: 68.72 kB / 493.4 MB, free: 4.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/0.3066, allocations: 1.86 MB / 495.2 MB, free: 2.543 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.3067, allocations: 57.7 kB / 495.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009031/0.3076, allocations: 1.416 MB / 496.7 MB, free: 1.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003956/0.3081, allocations: 0.4968 MB / 497.2 MB, free: 0.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.43e-05/0.3082, allocations: 32 kB / 497.2 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3083, allocations: 369.9 kB / 497.6 MB, free: 148 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.3095, allocations: 0.7653 MB / 498.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.311, allocations: 1.224 MB / 499.6 MB, free: 13.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002819/0.3138, allocations: 2.111 MB / 0.4899 GB, free: 11.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.3138, allocations: 8 kB / 0.4899 GB, free: 11.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004443/0.3183, allocations: 2.667 MB / 0.4925 GB, free: 8.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3183, allocations: 8 kB / 0.4925 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.3183, allocations: 16 kB / 0.4926 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.3197, allocations: 0.4978 MB / 0.493 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.3211, allocations: 383.4 kB / 0.4934 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007408/0.3285, allocations: 6.395 MB / 0.4997 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.3298, allocations: 80.03 kB / 0.4997 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3299, allocations: 71.98 kB / 0.4998 GB, free: 1.258 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.001646/0.3316, allocations: 1.044 MB / 0.5008 GB, free: 208 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.3319, allocations: 197.6 kB / 0.501 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1603/0.4922, allocations: 2.51 MB / 0.5035 GB, free: 89.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4923, allocations: 19.69 kB / 0.5035 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.4923, allocations: 7.844 kB / 0.5035 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.4923, allocations: 7.219 kB / 0.5035 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007705/0.5, allocations: 5.547 MB / 0.5089 GB, free: 86.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5001, allocations: 0 / 0.5089 GB, free: 86.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009235/0.501, allocations: 226.7 kB / 0.5091 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.5023, allocations: 499.9 kB / 0.5096 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/0.5024, allocations: 31.64 kB / 0.5096 GB, free: 86.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008007/0.5104, allocations: 10.47 MB / 0.5199 GB, free: 77.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5105, allocations: 7.906 kB / 0.5199 GB, free: 77.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004767/0.5152, allocations: 3.572 MB / 0.5234 GB, free: 75.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008665/0.5161, allocations: 462.1 kB / 0.5238 GB, free: 75.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.5164, allocations: 35.14 kB / 0.5238 GB, free: 75.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008698/0.5173, allocations: 72.16 kB / 0.5239 GB, free: 75.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.5176, allocations: 111.9 kB / 0.524 GB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.042e-05/0.5176, allocations: 38.02 kB / 0.524 GB, free: 75.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001676/0.5193, allocations: 1.286 MB / 0.5253 GB, free: 74.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5193, allocations: 6.344 kB / 0.5253 GB, free: 74.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001852/0.5212, allocations: 0.594 MB / 0.5259 GB, free: 74.61 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.0003238/0.5215, allocations: 174.7 kB / 0.5261 GB, free: 74.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.525, allocations: 2.391 MB / 0.5284 GB, free: 72.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.525, allocations: 0 / 0.5284 GB, free: 72.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.5271, allocations: 1.743 MB / 0.5301 GB, free: 70.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.5297, allocations: 0.4957 MB / 0.5306 GB, free: 69.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008373/0.5381, allocations: 7.119 MB / 0.5375 GB, free: 62.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001463/0.5396, allocations: 2.328 MB / 0.5398 GB, free: 60.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000592/0.5402, allocations: 139.4 kB / 0.5399 GB, free: 60.15 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.5402, allocations: 0 / 0.5399 GB, free: 60.15 MB / 378.7 MB Notification: Performance of Templates: time 0.08148/0.6217, allocations: 97.49 MB / 0.6351 GB, free: 10.69 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