Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008512/0.0008513, allocations: 99.34 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000905/0.000905, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002266/0.0002267, allocations: 8 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09212, allocations: 51.51 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.012/0.1042, allocations: 11.88 MB / 370.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1695/0.2737, allocations: 4.164 MB / 374.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.2748, allocations: 74.59 kB / 374.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.2764, allocations: 0.7431 MB / 375.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002375/0.2788, allocations: 1.051 MB / 376.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.2803, allocations: 0.611 MB / 377.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004706/0.285, allocations: 4.12 MB / 381.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0026/0.2876, allocations: 2.219 MB / 383.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001881/0.2895, allocations: 1.289 MB / 384.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002001/0.2915, allocations: 1.644 MB / 386.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003679/0.2919, allocations: 209.5 kB / 386.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.293, allocations: 417.8 kB / 387 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006565/0.2936, allocations: 0.7776 MB / 387.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006307/0.2943, allocations: 0.7431 MB / 388.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00374/0.298, allocations: 5.57 MB / 394.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.298, allocations: 3.938 kB / 394.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.298, allocations: 1.312 kB / 394.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.106e-05/0.2981, allocations: 0 / 394.1 MB, free: 3.531 MB / 302.1 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.008064/0.3062, allocations: 3.79 MB / 397.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3062, allocations: 8.812 kB / 397.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004094/0.3103, allocations: 0.8602 MB / 398.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/0.3138, allocations: 2.333 MB / 401.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.314, allocations: 235.9 kB / 401.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004004/0.3144, allocations: 319.7 kB / 401.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007136/0.3215, allocations: 4.237 MB / 405.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-05/0.3216, allocations: 3.906 kB / 405.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.3219, allocations: 132 kB / 406 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/0.322, allocations: 150.2 kB / 406.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005811/0.3279, allocations: 3.651 MB / 409.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01873/0.3466, allocations: 13.63 MB / 423.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005727/0.3524, allocations: 6.883 MB / 430.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002065/0.3544, allocations: 1.427 MB / 431.8 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0056/0.3601, allocations: 3.887 MB / 435.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.3601, allocations: 55.56 kB / 435.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 2.395e-06/0.3601, allocations: 0 / 435.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01285/0.373, allocations: 6.756 MB / 442.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.373, allocations: 68.72 kB / 442.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002725/0.3758, allocations: 1.872 MB / 444.4 MB, free: 3.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.3759, allocations: 49.7 kB / 444.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.3769, allocations: 1.444 MB / 445.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004136/0.3774, allocations: 493.7 kB / 446.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.226e-05/0.3775, allocations: 36 kB / 446.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3776, allocations: 377.8 kB / 446.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3789, allocations: 0.7652 MB / 447.6 MB, free: 108 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.3804, allocations: 1.226 MB / 448.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.3818, allocations: 0.9824 MB / 449.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.3818, allocations: 4 kB / 449.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004595/0.3864, allocations: 2.659 MB / 452.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3865, allocations: 19.23 kB / 452.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.3865, allocations: 19.98 kB / 452.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.3877, allocations: 0.4978 MB / 453 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.3892, allocations: 387.4 kB / 453.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00807/0.3973, allocations: 6.38 MB / 459.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.3993, allocations: 91.97 kB / 459.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.3997, allocations: 71.98 kB / 459.9 MB, free: 3.305 MB / 366.1 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.002479/0.4021, allocations: 1.049 MB / 460.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005492/0.4027, allocations: 193.7 kB / 461.1 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.4074, allocations: 2.512 MB / 463.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.4075, allocations: 16 kB / 463.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/0.4075, allocations: 4 kB / 463.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.4075, allocations: 7.969 kB / 463.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009773/0.4173, allocations: 5.544 MB / 469.2 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.4173, allocations: 8.016 kB / 469.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009835/0.4183, allocations: 219.7 kB / 469.4 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/0.4196, allocations: 0.5057 MB / 469.9 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.4197, allocations: 31.98 kB / 470 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009743/0.4295, allocations: 10.47 MB / 480.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.4295, allocations: 0 / 480.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005726/0.4352, allocations: 3.571 MB / 484 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.4365, allocations: 478.4 kB / 484.5 MB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006216/0.4371, allocations: 28 kB / 484.5 MB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.4384, allocations: 71.95 kB / 484.6 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.4387, allocations: 113.1 kB / 484.7 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.4388, allocations: 36 kB / 484.7 MB, free: 9.516 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002577/0.4414, allocations: 1.294 MB / 486 MB, free: 8.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4414, allocations: 0 / 486 MB, free: 8.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002763/0.4442, allocations: 0.6016 MB / 486.6 MB, free: 7.633 MB / 398.1 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.0003845/0.4445, allocations: 169.6 kB / 486.8 MB, free: 7.461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003985/0.4485, allocations: 2.395 MB / 489.2 MB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4486, allocations: 4 kB / 489.2 MB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.451, allocations: 1.726 MB / 490.9 MB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.4537, allocations: 0.5092 MB / 491.4 MB, free: 2.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.465, allocations: 7.153 MB / 498.6 MB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/0.4674, allocations: 2.375 MB / 0.4892 GB, free: 9.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001615/0.4691, allocations: 425 kB / 0.4896 GB, free: 8.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004358/0.4695, allocations: 127.4 kB / 0.4897 GB, free: 8.605 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4695, allocations: 0 / 0.4897 GB, free: 8.605 MB / 414.1 MB Notification: Performance of Templates: time 0.05247/0.522, allocations: 29.04 MB / 0.5181 GB, free: 11.86 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches