Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001483, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001492/0.001492, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.37/1.37, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000926/0.000926, allocations: 51.66 kB / 300.6 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09199, allocations: 49.44 MB / 350.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2049/0.2969, allocations: 32.85 MB / 382.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01954/0.3165, allocations: 8.989 MB / 391.9 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008652/0.3252, allocations: 236 kB / 392.1 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01837/0.3436, allocations: 7.939 MB / 400.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01499/0.3586, allocations: 3.656 MB / 403.7 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008246/0.3669, allocations: 2.082 MB / 405.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01976/0.3866, allocations: 12.93 MB / 418.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03923/0.4259, allocations: 22.6 MB / 441.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01253/0.4385, allocations: 6.53 MB / 447.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01263/0.4512, allocations: 7.234 MB / 455.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005725/0.457, allocations: 1.883 MB / 457 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007606/0.4646, allocations: 2.25 MB / 459.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006076/0.4707, allocations: 3.756 MB / 463 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01395/0.4847, allocations: 7.102 MB / 470.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03473/0.5194, allocations: 24.87 MB / 495 MB, free: 4.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.5195, allocations: 0 / 495 MB, free: 4.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5195, allocations: 0 / 495 MB, free: 4.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00077/0.5203, allocations: 4 kB / 495 MB, free: 4.855 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04739/0.5677, allocations: 14.63 MB / 0.4977 GB, free: 6.113 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.5677, allocations: 8.031 kB / 0.4977 GB, free: 6.105 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03929/0.607, allocations: 6.745 MB / 0.5043 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0165/0.6236, allocations: 7.885 MB / 0.512 GB, free: 7.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007762/0.6244, allocations: 0.7986 MB / 0.5127 GB, free: 6.574 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004346/0.6288, allocations: 1.051 MB / 0.5138 GB, free: 5.523 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3736/1.002, allocations: 17.21 MB / 0.5306 GB, free: 111.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003818/1.003, allocations: 17.42 kB / 0.5306 GB, free: 111.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002512/1.005, allocations: 447.5 kB / 0.531 GB, free: 111 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006361/1.006, allocations: 0.6243 MB / 0.5316 GB, free: 110.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03248/1.038, allocations: 16.29 MB / 0.5475 GB, free: 104.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07831/1.117, allocations: 55.81 MB / 0.602 GB, free: 54.03 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02008/1.137, allocations: 31.09 MB / 0.6324 GB, free: 19.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005406/1.142, allocations: 4.335 MB / 0.6366 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.158, allocations: 10.46 MB / 0.6468 GB, free: 4.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.79e-05/1.158, allocations: 85.8 kB / 0.6469 GB, free: 4.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=398): time 6.292e-06/1.158, allocations: 0 / 0.6469 GB, free: 4.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=423): time 0.04746/1.205, allocations: 21.56 MB / 0.668 GB, free: 14.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/1.205, allocations: 120.7 kB / 0.6681 GB, free: 14.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007044/1.213, allocations: 4.677 MB / 0.6727 GB, free: 9.629 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007444/1.213, allocations: 93.7 kB / 0.6727 GB, free: 9.531 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002898/1.216, allocations: 4.665 MB / 0.6773 GB, free: 4.836 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00215/1.218, allocations: 1.439 MB / 0.6787 GB, free: 3.406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002065/1.22, allocations: 1.136 MB / 0.6798 GB, free: 2.258 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/1.221, allocations: 305.1 kB / 0.6801 GB, free: 1.957 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00433/1.225, allocations: 2.905 MB / 0.6829 GB, free: 15.05 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005718/1.231, allocations: 4.945 MB / 0.6878 GB, free: 9.172 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1961/1.427, allocations: 8.339 MB / 0.6959 GB, free: 145.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-05/1.427, allocations: 18.72 kB / 0.6959 GB, free: 145.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01852/1.445, allocations: 9.731 MB / 0.7054 GB, free: 143.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.908e-05/1.446, allocations: 39.19 kB / 0.7055 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/1.446, allocations: 64.88 kB / 0.7055 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00464/1.45, allocations: 1.655 MB / 0.7072 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005063/1.455, allocations: 1.319 MB / 0.7084 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02005/1.475, allocations: 17.78 MB / 0.7258 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004731/1.48, allocations: 323.2 kB / 0.7261 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007724/1.481, allocations: 285.8 kB / 0.7264 GB, free: 131.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005783/1.487, allocations: 3.886 MB / 0.7302 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.488, allocations: 0.4961 MB / 0.7307 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/1.501, allocations: 7.775 MB / 0.7383 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.934e-05/1.501, allocations: 42.62 kB / 0.7383 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.855e-05/1.501, allocations: 27.06 kB / 0.7383 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.041e-05/1.502, allocations: 18.42 kB / 0.7383 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02851/1.53, allocations: 17.46 MB / 0.7554 GB, free: 118.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/1.53, allocations: 3.781 kB / 0.7554 GB, free: 118.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00296/1.533, allocations: 0.7246 MB / 0.7561 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003889/1.537, allocations: 1.566 MB / 0.7576 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003832/1.537, allocations: 104.8 kB / 0.7577 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01946/1.557, allocations: 21.23 MB / 0.7785 GB, free: 95.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.557, allocations: 11.94 kB / 0.7785 GB, free: 95.45 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01616/1.573, allocations: 11.44 MB / 0.7896 GB, free: 83.97 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/1.576, allocations: 1.15 MB / 0.7908 GB, free: 82.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001183/1.577, allocations: 91.94 kB / 0.7909 GB, free: 82.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003013/1.58, allocations: 231.8 kB / 0.7911 GB, free: 82.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007817/1.581, allocations: 323.4 kB / 0.7914 GB, free: 82.17 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/1.581, allocations: 130.7 kB / 0.7915 GB, free: 82.04 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004849/1.586, allocations: 3.169 MB / 0.7946 GB, free: 78.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.586, allocations: 0 / 0.7946 GB, free: 78.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007308/1.593, allocations: 1.866 MB / 0.7964 GB, free: 77.01 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,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.0007571/1.594, allocations: 280.6 kB / 0.7967 GB, free: 76.74 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02207/1.616, allocations: 11.59 MB / 0.808 GB, free: 65.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.616, allocations: 4 kB / 0.808 GB, free: 65.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007378/1.623, allocations: 4.64 MB / 0.8126 GB, free: 60.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007003/1.63, allocations: 1.299 MB / 0.8138 GB, free: 59.14 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03531/1.666, allocations: 19.35 MB / 0.8327 GB, free: 39.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009061/1.675, allocations: 6.766 MB / 0.8393 GB, free: 32.89 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006219/1.681, allocations: 1.861 MB / 0.8411 GB, free: 31.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/1.683, allocations: 375.4 kB / 0.8415 GB, free: 30.66 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/1.683, allocations: 0 / 0.8415 GB, free: 30.66 MB / 478.1 MB Notification: Performance of Templates: time 0.3593/2.042, allocations: 84.89 MB / 0.9244 GB, free: 110.7 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches