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.001363/0.001363, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.427/1.427, allocations: 227.7 MB / 247.7 MB, free: 10.32 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.001971/0.001971, allocations: 61.94 kB / 307.9 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1047, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01259/0.1173, allocations: 9.699 MB / 368.1 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007574/0.1249, allocations: 3.77 MB / 371.9 MB, free: 392 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.1268, allocations: 47.81 kB / 372 MB, free: 344 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1794/0.3062, allocations: 0.6586 MB / 372.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003367/0.3096, allocations: 0.8724 MB / 373.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.3109, allocations: 476 kB / 374 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003977/0.3149, allocations: 2.648 MB / 376.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002265/0.3172, allocations: 1.875 MB / 378.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.3194, allocations: 1.192 MB / 379.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.3217, allocations: 1.557 MB / 381.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000468/0.3222, allocations: 303.6 kB / 381.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.3234, allocations: 0.5529 MB / 382.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009923/0.3244, allocations: 0.9868 MB / 383.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001972/0.3264, allocations: 1.485 MB / 384.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005289/0.3317, allocations: 4.259 MB / 388.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3318, allocations: 4 kB / 388.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3318, allocations: 0 / 388.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000113/0.3319, allocations: 1 kB / 388.8 MB, free: 5.75 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007638/0.3395, allocations: 3.173 MB / 392 MB, free: 3.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3396, allocations: 10.06 kB / 392 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.341, allocations: 361.2 kB / 392.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/0.3442, allocations: 1.673 MB / 394 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.3443, allocations: 149 kB / 394.2 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003941/0.3447, allocations: 216.1 kB / 394.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004658/0.3494, allocations: 2.695 MB / 397.1 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.095e-05/0.3495, allocations: 5.906 kB / 397.1 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/0.3497, allocations: 86.69 kB / 397.2 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/0.3498, allocations: 100.7 kB / 397.3 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004137/0.3539, allocations: 2.272 MB / 399.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/0.3697, allocations: 8.244 MB / 407.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.373, allocations: 1.626 MB / 409.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/0.3753, allocations: 1.077 MB / 410.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.3756, allocations: 137.7 kB / 410.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.3756, allocations: 43.56 kB / 410.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.767e-06/0.3756, allocations: 0 / 410.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01561/0.3913, allocations: 6.468 MB / 417.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.3914, allocations: 64.72 kB / 417.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.3951, allocations: 2.173 MB / 419.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.3954, allocations: 49.7 kB / 419.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.3964, allocations: 1.115 MB / 420.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005064/0.3969, allocations: 456.1 kB / 421 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004695/0.3974, allocations: 243.4 kB / 421.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.3976, allocations: 361.9 kB / 421.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.3992, allocations: 0.7574 MB / 422.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.4008, allocations: 1.009 MB / 423.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003092/0.4039, allocations: 1.863 MB / 425.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.404, allocations: 4 kB / 425.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005689/0.4096, allocations: 2.765 MB / 428 MB, free: 2.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.4097, allocations: 8 kB / 428 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.4097, allocations: 8 kB / 428 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/0.4119, allocations: 0.7877 MB / 428.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.4131, allocations: 271.5 kB / 429 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/0.4263, allocations: 9.605 MB / 438.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.4279, allocations: 94.88 kB / 438.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.4281, allocations: 52.06 kB / 438.8 MB, free: 7.641 MB / 350.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.001518/0.4296, allocations: 0.7401 MB / 439.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005232/0.4302, allocations: 209.4 kB / 439.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/0.4351, allocations: 2.489 MB / 442.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/0.4351, allocations: 15.94 kB / 442.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.4351, allocations: 8 kB / 442.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.4352, allocations: 8.156 kB / 442.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009617/0.4448, allocations: 4.95 MB / 447.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4448, allocations: 0 / 447.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4459, allocations: 219.9 kB / 447.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.4477, allocations: 0.655 MB / 448.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.4478, allocations: 47.91 kB / 448.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.4582, allocations: 8.709 MB / 456.8 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.4582, allocations: 11.95 kB / 456.8 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006689/0.4649, allocations: 3.534 MB / 460.4 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.4661, allocations: 450.3 kB / 460.8 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003618/0.4665, allocations: 28 kB / 460.8 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009921/0.4675, allocations: 87.91 kB / 460.9 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.4678, allocations: 98.16 kB / 461 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.4679, allocations: 39.97 kB / 461.1 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.4704, allocations: 1.536 MB / 462.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.4704, allocations: 0 / 462.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00203/0.4724, allocations: 0.5234 MB / 463.1 MB, free: 14.7 MB / 382.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.001616/0.4741, allocations: 463.9 kB / 463.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005981/0.4801, allocations: 2.865 MB / 466.4 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4801, allocations: 4.188 kB / 466.4 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002804/0.4829, allocations: 1.601 MB / 468 MB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.4853, allocations: 466.4 kB / 468.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009068/0.4944, allocations: 5.242 MB / 473.7 MB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001912/0.4963, allocations: 1.939 MB / 475.7 MB, free: 2.129 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005957/0.4969, allocations: 139.4 kB / 475.8 MB, free: 1.992 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4969, allocations: 0 / 475.8 MB, free: 1.992 MB / 382.1 MB Notification: Performance of Templates: time 0.08424/0.5812, allocations: 64.15 MB / 0.5273 GB, free: 1.867 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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