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_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 111.8 kB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 189.6 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 43.94 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2795, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01333/0.2929, allocations: 12.82 MB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007802/0.3007, allocations: 4.253 MB / 418.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00179/0.3025, allocations: 75.75 kB / 418.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003027/0.3056, allocations: 0.9744 MB / 419.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003857/0.3095, allocations: 1.27 MB / 420.8 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.3114, allocations: 0.8333 MB / 421.6 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004596/0.316, allocations: 3.88 MB / 425.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003624/0.3197, allocations: 3.224 MB / 428.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002844/0.3225, allocations: 1.823 MB / 430.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003333/0.3259, allocations: 2.067 MB / 432.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009163/0.3268, allocations: 0.4961 MB / 433.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.3286, allocations: 0.7029 MB / 433.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009836/0.3296, allocations: 1.11 MB / 435 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002558/0.3322, allocations: 2.073 MB / 437 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006636/0.3388, allocations: 6.586 MB / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3389, allocations: 4 kB / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3389, allocations: 3.938 kB / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001259/0.339, allocations: 0 / 443.6 MB, free: 14.46 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01183/0.3508, allocations: 4.312 MB / 447.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3509, allocations: 12.03 kB / 447.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004268/0.3552, allocations: 0.7969 MB / 448.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005021/0.3602, allocations: 2.376 MB / 451.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.3605, allocations: 242.4 kB / 451.4 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008556/0.3614, allocations: 315.9 kB / 451.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.3718, allocations: 4.223 MB / 455.9 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001264/0.3719, allocations: 7.906 kB / 455.9 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007482/0.3727, allocations: 124 kB / 456 MB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001757/0.3729, allocations: 154.3 kB / 456.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007775/0.3807, allocations: 3.612 MB / 459.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02357/0.4043, allocations: 13 MB / 472.8 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007226/0.4115, allocations: 6.91 MB / 479.7 MB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002318/0.4139, allocations: 1.339 MB / 481 MB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007015/0.4209, allocations: 3.734 MB / 484.8 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.421, allocations: 47.56 kB / 484.8 MB, free: 3.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=120): time 5.34e-06/0.421, allocations: 4 kB / 484.8 MB, free: 3.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01131/0.4323, allocations: 5.38 MB / 490.2 MB, free: 14.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.4324, allocations: 72.34 kB / 490.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/0.4356, allocations: 1.701 MB / 492 MB, free: 12.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.4358, allocations: 49.7 kB / 492 MB, free: 12.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/0.4367, allocations: 1.395 MB / 493.4 MB, free: 10.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.4371, allocations: 437.8 kB / 493.8 MB, free: 10.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004577/0.4376, allocations: 283.3 kB / 494.1 MB, free: 10.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.4377, allocations: 305.1 kB / 494.4 MB, free: 9.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.4389, allocations: 0.6442 MB / 495 MB, free: 9.242 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.4403, allocations: 1.113 MB / 496.2 MB, free: 7.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.4429, allocations: 1.874 MB / 498 MB, free: 5.852 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/0.443, allocations: 4 kB / 498 MB, free: 5.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00398/0.4469, allocations: 2.323 MB / 0.4886 GB, free: 3.484 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.447, allocations: 12.28 kB / 0.4886 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.447, allocations: 20 kB / 0.4887 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007142/0.4478, allocations: 263.2 kB / 0.4889 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.4491, allocations: 359.4 kB / 0.4893 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005854/0.4549, allocations: 6.194 MB / 0.4953 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.4563, allocations: 79.86 kB / 0.4954 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/0.4566, allocations: 67.98 kB / 0.4955 GB, free: 12.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001834/0.4584, allocations: 1.001 MB / 0.4964 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/0.4589, allocations: 181.8 kB / 0.4966 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/0.4628, allocations: 2.131 MB / 0.4987 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.4628, allocations: 12 kB / 0.4987 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-05/0.4629, allocations: 4 kB / 0.4987 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4629, allocations: 3.984 kB / 0.4987 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00866/0.4716, allocations: 4.822 MB / 0.5034 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.4716, allocations: 4 kB / 0.5034 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007953/0.4724, allocations: 168 kB / 0.5036 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.4736, allocations: 452 kB / 0.504 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.4737, allocations: 35.98 kB / 0.504 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/0.4851, allocations: 11.04 MB / 0.5148 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4852, allocations: 0 / 0.5148 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005028/0.4902, allocations: 3.01 MB / 0.5178 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.4912, allocations: 406.7 kB / 0.5181 GB, free: 3.805 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005141/0.4918, allocations: 39.92 kB / 0.5182 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4929, allocations: 59.95 kB / 0.5182 GB, free: 3.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.4932, allocations: 104.8 kB / 0.5183 GB, free: 3.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.82e-05/0.4933, allocations: 35.98 kB / 0.5184 GB, free: 3.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002222/0.4956, allocations: 1.174 MB / 0.5195 GB, free: 2.402 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4956, allocations: 0 / 0.5195 GB, free: 2.402 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002335/0.4979, allocations: 0.5352 MB / 0.52 GB, free: 1.867 MB / 446.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.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,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 (86): * Single equations (assignments): 81 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004097/0.4984, allocations: 165.1 kB / 0.5202 GB, free: 1.699 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003549/0.5019, allocations: 2.085 MB / 0.5222 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5019, allocations: 448 / 0.5222 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.5043, allocations: 1.534 MB / 0.5237 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/0.5069, allocations: 0.4898 MB / 0.5242 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.5182, allocations: 5.451 MB / 0.5295 GB, free: 7.965 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002764/0.521, allocations: 2.227 MB / 0.5317 GB, free: 5.711 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005846/0.5216, allocations: 139.4 kB / 0.5318 GB, free: 5.574 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.5216, allocations: 0 / 0.5318 GB, free: 5.574 MB / 462.1 MB Notification: Performance of Templates: time 0.3026/0.8242, allocations: 109 MB / 0.6382 GB, free: 34.37 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches