Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 186.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009156/0.0009156, allocations: 101.2 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000782/0.000782, allocations: 40.08 kB / 350.1 MB, free: 40 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2105, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.00924/0.2198, allocations: 12.74 MB / 412.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00609/0.2259, allocations: 4.215 MB / 416.4 MB, free: 16.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.2273, allocations: 67.75 kB / 416.5 MB, free: 16.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.2292, allocations: 0.8629 MB / 417.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002588/0.2318, allocations: 1.178 MB / 418.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.2332, allocations: 0.7708 MB / 419.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00348/0.2367, allocations: 4.377 MB / 423.7 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002388/0.2391, allocations: 2.697 MB / 426.4 MB, free: 6.285 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.2408, allocations: 1.498 MB / 427.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001566/0.2424, allocations: 1.945 MB / 429.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.2428, allocations: 296 kB / 430.1 MB, free: 2.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.2442, allocations: 0.4958 MB / 430.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006658/0.2449, allocations: 0.9071 MB / 431.5 MB, free: 1.133 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002192/0.2471, allocations: 1.89 MB / 433.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006228/0.2533, allocations: 6.531 MB / 440 MB, free: 8.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.2534, allocations: 7.938 kB / 440 MB, free: 8.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2534, allocations: 0 / 440 MB, free: 8.676 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002081/0.2536, allocations: 0 / 440 MB, free: 8.676 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.0123/0.2659, allocations: 4.378 MB / 444.3 MB, free: 4.223 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.266, allocations: 8.031 kB / 444.3 MB, free: 4.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00392/0.2699, allocations: 0.8164 MB / 445.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004134/0.2741, allocations: 2.362 MB / 447.5 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.2743, allocations: 234.6 kB / 447.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005077/0.2748, allocations: 324 kB / 448.1 MB, free: 440 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007399/0.2822, allocations: 4.254 MB / 452.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.671e-05/0.2823, allocations: 7.938 kB / 452.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/0.2826, allocations: 128 kB / 452.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.2827, allocations: 142.2 kB / 452.6 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006616/0.2893, allocations: 3.659 MB / 456.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02175/0.3111, allocations: 13.49 MB / 469.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006496/0.3177, allocations: 6.861 MB / 476.6 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00284/0.3206, allocations: 1.422 MB / 478 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007111/0.3277, allocations: 3.627 MB / 481.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.3278, allocations: 55.55 kB / 481.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=124): time 3.416e-06/0.3278, allocations: 4 kB / 481.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=144): time 0.01329/0.3411, allocations: 6.648 MB / 488.4 MB, free: 6.523 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.3412, allocations: 68.7 kB / 488.4 MB, free: 6.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.3439, allocations: 1.855 MB / 490.3 MB, free: 4.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.3441, allocations: 53.7 kB / 490.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009608/0.345, allocations: 1.416 MB / 491.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003902/0.3454, allocations: 0.4891 MB / 492.2 MB, free: 2.598 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004675/0.3459, allocations: 303.3 kB / 492.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.346, allocations: 305.1 kB / 492.8 MB, free: 1.996 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.3472, allocations: 0.7652 MB / 493.6 MB, free: 1.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.3486, allocations: 1.224 MB / 494.8 MB, free: 15.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002729/0.3514, allocations: 2.1 MB / 496.9 MB, free: 13.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.3514, allocations: 4 kB / 496.9 MB, free: 13.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004684/0.3561, allocations: 2.663 MB / 499.6 MB, free: 10.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.3561, allocations: 19.88 kB / 499.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/0.3561, allocations: 16 kB / 499.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.3575, allocations: 0.5062 MB / 0.4884 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.3589, allocations: 383.4 kB / 0.4888 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007847/0.3668, allocations: 6.407 MB / 0.495 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.3688, allocations: 72.12 kB / 0.4951 GB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.369, allocations: 71.98 kB / 0.4952 GB, free: 3.098 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,30,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002116/0.3711, allocations: 1.044 MB / 0.4962 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.3716, allocations: 205.5 kB / 0.4964 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2056/0.5771, allocations: 2.493 MB / 0.4988 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.981e-05/0.5772, allocations: 13.44 kB / 0.4988 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/0.5772, allocations: 7.156 kB / 0.4988 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-05/0.5773, allocations: 6.703 kB / 0.4988 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00877/0.586, allocations: 5.528 MB / 0.5042 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.5861, allocations: 4.562 kB / 0.5043 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009098/0.587, allocations: 229.3 kB / 0.5045 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.5882, allocations: 497.9 kB / 0.5049 GB, free: 91.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.5883, allocations: 36 kB / 0.505 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008526/0.5969, allocations: 10.47 MB / 0.5152 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5969, allocations: 0 / 0.5152 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03055/0.6275, allocations: 27.22 MB / 0.5418 GB, free: 58.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006833/0.6282, allocations: 462.6 kB / 0.5422 GB, free: 58.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.6284, allocations: 31.94 kB / 0.5423 GB, free: 58.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008632/0.6293, allocations: 72 kB / 0.5423 GB, free: 58.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.6296, allocations: 105.1 kB / 0.5424 GB, free: 58.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-05/0.6296, allocations: 44.05 kB / 0.5425 GB, free: 58.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00143/0.6311, allocations: 1.282 MB / 0.5437 GB, free: 56.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6311, allocations: 0 / 0.5437 GB, free: 56.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002182/0.6333, allocations: 0.8151 MB / 0.5445 GB, free: 56.07 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,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.0002796/0.6336, allocations: 162.7 kB / 0.5447 GB, free: 55.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003222/0.6368, allocations: 2.4 MB / 0.547 GB, free: 53.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6368, allocations: 0 / 0.547 GB, free: 53.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.6387, allocations: 1.734 MB / 0.5487 GB, free: 51.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.6406, allocations: 490.5 kB / 0.5492 GB, free: 51.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009075/0.6497, allocations: 9.09 MB / 0.5581 GB, free: 42.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/0.6515, allocations: 2.418 MB / 0.5604 GB, free: 39.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001605/0.6531, allocations: 424.8 kB / 0.5608 GB, free: 39.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.6535, allocations: 135.4 kB / 0.561 GB, free: 39.05 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6535, allocations: 0 / 0.561 GB, free: 39.05 MB / 378.7 MB Notification: Performance of Templates: time 0.0478/0.7013, allocations: 35.67 MB / 0.5958 GB, free: 3.73 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches