Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001671/0.001671, allocations: 203.9 kB / 18.78 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.479/1.479, allocations: 230.4 MB / 250 MB, free: 9.051 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.83 kB / 367.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2649, allocations: 53.3 MB / 420.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01382/0.2787, allocations: 9.755 MB / 430.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00864/0.2874, allocations: 3.771 MB / 434.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001578/0.289, allocations: 51.81 kB / 434.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.2909, allocations: 0.7027 MB / 435 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.2938, allocations: 0.9128 MB / 435.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.2951, allocations: 478.1 kB / 436.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003476/0.2986, allocations: 2.662 MB / 439 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.3007, allocations: 1.382 MB / 440.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.303, allocations: 1.207 MB / 441.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003333/0.3063, allocations: 1.545 MB / 443.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006247/0.3069, allocations: 308 kB / 443.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.3084, allocations: 0.5737 MB / 444 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.3097, allocations: 1.036 MB / 445.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002723/0.3124, allocations: 1.485 MB / 446.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006462/0.3189, allocations: 4.324 MB / 450.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3189, allocations: 0 / 450.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3189, allocations: 0 / 450.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001389/0.3191, allocations: 0 / 450.9 MB, free: 9.984 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007272/0.3263, allocations: 3.26 MB / 454.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.3264, allocations: 12.03 kB / 454.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001223/0.3276, allocations: 378.8 kB / 454.5 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/0.3306, allocations: 1.738 MB / 456.2 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.3308, allocations: 152 kB / 456.4 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003664/0.3311, allocations: 211.9 kB / 456.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004991/0.3361, allocations: 2.686 MB / 459.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.943e-05/0.3362, allocations: 11.89 kB / 459.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.3364, allocations: 83.98 kB / 459.4 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000127/0.3365, allocations: 99.92 kB / 459.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004446/0.341, allocations: 2.28 MB / 461.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01411/0.3551, allocations: 8.157 MB / 469.9 MB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0032/0.3583, allocations: 1.554 MB / 471.5 MB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.3604, allocations: 1.019 MB / 472.5 MB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003346/0.3607, allocations: 130 kB / 472.6 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/0.3608, allocations: 43.56 kB / 472.7 MB, free: 3.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 5.159e-06/0.3608, allocations: 3.984 kB / 472.7 MB, free: 3.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01424/0.375, allocations: 6.48 MB / 479.1 MB, free: 13.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.3751, allocations: 68.66 kB / 479.2 MB, free: 13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/0.3784, allocations: 2.185 MB / 481.4 MB, free: 10.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002029/0.3786, allocations: 49.7 kB / 481.4 MB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3797, allocations: 1.141 MB / 482.6 MB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005261/0.3803, allocations: 475.9 kB / 483 MB, free: 9.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004736/0.3807, allocations: 239.5 kB / 483.3 MB, free: 8.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.3809, allocations: 365.9 kB / 483.6 MB, free: 8.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.3824, allocations: 0.7651 MB / 484.4 MB, free: 7.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.3841, allocations: 1.013 MB / 485.4 MB, free: 6.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.3873, allocations: 1.858 MB / 487.3 MB, free: 4.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3873, allocations: 11.92 kB / 487.3 MB, free: 4.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005699/0.393, allocations: 2.746 MB / 490 MB, free: 1.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.393, allocations: 11.06 kB / 490 MB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.3931, allocations: 8 kB / 490.1 MB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/0.3952, allocations: 0.7773 MB / 490.8 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3965, allocations: 267.6 kB / 491.1 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.4099, allocations: 9.607 MB / 0.489 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.4115, allocations: 95.83 kB / 0.4891 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.4117, allocations: 51.98 kB / 0.4891 GB, free: 6.801 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001451/0.4131, allocations: 0.744 MB / 0.4898 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004806/0.4136, allocations: 218.6 kB / 0.49 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004953/0.4186, allocations: 2.473 MB / 0.4925 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3e-05/0.4186, allocations: 12 kB / 0.4925 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/0.4186, allocations: 11.94 kB / 0.4925 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.4186, allocations: 7.969 kB / 0.4925 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009759/0.4284, allocations: 4.938 MB / 0.4973 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.4284, allocations: 4 kB / 0.4973 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.4295, allocations: 219.6 kB / 0.4975 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.4314, allocations: 0.6425 MB / 0.4981 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.4315, allocations: 35.98 kB / 0.4982 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.4425, allocations: 8.727 MB / 0.5067 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.4425, allocations: 7.969 kB / 0.5067 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007169/0.4497, allocations: 3.529 MB / 0.5102 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.4508, allocations: 447.6 kB / 0.5106 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/0.4511, allocations: 39.98 kB / 0.5106 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009452/0.4521, allocations: 79.91 kB / 0.5107 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/0.4524, allocations: 100.8 kB / 0.5108 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.4525, allocations: 43.98 kB / 0.5108 GB, free: 15.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002329/0.4548, allocations: 1.54 MB / 0.5123 GB, free: 14.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4548, allocations: 0 / 0.5123 GB, free: 14.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002301/0.4571, allocations: 0.5313 MB / 0.5129 GB, free: 13.83 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001762/0.4589, allocations: 469.2 kB / 0.5133 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004922/0.4638, allocations: 2.298 MB / 0.5155 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.4638, allocations: 0 / 0.5155 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002764/0.4666, allocations: 1.532 MB / 0.517 GB, free: 9.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.4688, allocations: 458.3 kB / 0.5175 GB, free: 9.141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009367/0.4782, allocations: 5.204 MB / 0.5226 GB, free: 3.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/0.4801, allocations: 1.959 MB / 0.5245 GB, free: 1.895 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001301/0.4814, allocations: 395.7 kB / 0.5249 GB, free: 1.504 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.4818, allocations: 135.4 kB / 0.525 GB, free: 1.371 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4818, allocations: 0 / 0.525 GB, free: 1.371 MB / 446.1 MB Notification: Performance of Templates: time 0.2688/0.7506, allocations: 31.02 MB / 0.5553 GB, free: 111.7 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches