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.001523/0.001523, allocations: 119.5 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 214.8 kB / 19.41 MB, free: 3.684 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.404/1.404, allocations: 227.7 MB / 247.9 MB, free: 10.19 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.001853/0.001853, allocations: 71.89 kB / 359.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2284, allocations: 50.54 MB / 410.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01175/0.2402, allocations: 9.731 MB / 420 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006933/0.2471, allocations: 3.763 MB / 423.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.2482, allocations: 47.81 kB / 423.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.2499, allocations: 0.7027 MB / 424.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002204/0.2522, allocations: 0.9284 MB / 425.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.2532, allocations: 474.4 kB / 425.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003006/0.2562, allocations: 2.661 MB / 428.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001765/0.258, allocations: 1.382 MB / 429.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.2595, allocations: 1.207 MB / 431.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00184/0.2613, allocations: 1.51 MB / 432.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004187/0.2617, allocations: 307.9 kB / 432.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009584/0.2627, allocations: 0.5543 MB / 433.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.2637, allocations: 1.028 MB / 434.5 MB, free: 9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.2652, allocations: 1.485 MB / 436 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004912/0.2701, allocations: 4.324 MB / 440.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2701, allocations: 0 / 440.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2701, allocations: 0 / 440.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001045/0.2702, allocations: 0 / 440.3 MB, free: 3.168 MB / 350.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.006464/0.2767, allocations: 3.272 MB / 443.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2767, allocations: 8.031 kB / 443.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.2779, allocations: 370.9 kB / 444 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00302/0.2809, allocations: 1.738 MB / 445.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.281, allocations: 156 kB / 445.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003358/0.2813, allocations: 204 kB / 446.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004665/0.286, allocations: 2.69 MB / 448.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.031e-05/0.2861, allocations: 7.891 kB / 448.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.2863, allocations: 87.98 kB / 448.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.2864, allocations: 95.92 kB / 448.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004124/0.2906, allocations: 2.28 MB / 451.2 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.3039, allocations: 8.161 MB / 459.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/0.3071, allocations: 1.553 MB / 460.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002056/0.3091, allocations: 1.011 MB / 461.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002655/0.3094, allocations: 135.1 kB / 462.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.91e-05/0.3094, allocations: 47.56 kB / 462.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.025e-06/0.3094, allocations: 0 / 462.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01369/0.3231, allocations: 6.473 MB / 468.6 MB, free: 6.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.3232, allocations: 72.66 kB / 468.7 MB, free: 6.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003192/0.3264, allocations: 2.181 MB / 470.8 MB, free: 3.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.3265, allocations: 49.7 kB / 470.9 MB, free: 3.902 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009996/0.3275, allocations: 1.141 MB / 472 MB, free: 2.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004587/0.3279, allocations: 475.9 kB / 472.5 MB, free: 2.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004395/0.3284, allocations: 243.5 kB / 472.7 MB, free: 2.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3286, allocations: 365.8 kB / 473.1 MB, free: 1.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.33, allocations: 0.7574 MB / 473.9 MB, free: 0.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.3316, allocations: 1.013 MB / 474.9 MB, free: 15.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/0.3347, allocations: 1.865 MB / 476.7 MB, free: 13.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3348, allocations: 0 / 476.7 MB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005396/0.3401, allocations: 2.754 MB / 479.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3402, allocations: 8 kB / 479.5 MB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.3402, allocations: 7.938 kB / 479.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/0.3422, allocations: 0.7773 MB / 480.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.3434, allocations: 283.5 kB / 480.6 MB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/0.3563, allocations: 9.595 MB / 490.2 MB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.3576, allocations: 103.8 kB / 490.3 MB, free: 32 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.3578, allocations: 48.05 kB / 490.3 MB, free: 15.98 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.001283/0.359, allocations: 0.7433 MB / 491 MB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/0.3594, allocations: 218.6 kB / 491.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004841/0.3643, allocations: 2.477 MB / 493.7 MB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-05/0.3643, allocations: 20 kB / 493.8 MB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.3643, allocations: 7.938 kB / 493.8 MB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.3643, allocations: 3.984 kB / 493.8 MB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008942/0.3732, allocations: 4.938 MB / 498.7 MB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.3733, allocations: 0 / 498.7 MB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.3743, allocations: 219.6 kB / 498.9 MB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.376, allocations: 0.6434 MB / 499.6 MB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.506e-05/0.3761, allocations: 39.91 kB / 499.6 MB, free: 6.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.3871, allocations: 8.726 MB / 0.4964 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.3871, allocations: 7.922 kB / 0.4964 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006433/0.3935, allocations: 3.533 MB / 0.4999 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.3947, allocations: 459.5 kB / 0.5003 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.3949, allocations: 24 kB / 0.5003 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009594/0.3959, allocations: 79.91 kB / 0.5004 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/0.3962, allocations: 100.8 kB / 0.5005 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.993e-05/0.3963, allocations: 51.97 kB / 0.5006 GB, free: 9.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002219/0.3985, allocations: 1.528 MB / 0.502 GB, free: 7.547 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3985, allocations: 0 / 0.502 GB, free: 7.547 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001762/0.4002, allocations: 0.5313 MB / 0.5026 GB, free: 7.016 MB / 430.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.001564/0.4018, allocations: 461.2 kB / 0.503 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004439/0.4062, allocations: 2.298 MB / 0.5052 GB, free: 4.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4062, allocations: 0 / 0.5052 GB, free: 4.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.409, allocations: 1.543 MB / 0.5068 GB, free: 2.762 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.4111, allocations: 454.3 kB / 0.5072 GB, free: 2.324 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008402/0.4195, allocations: 5.212 MB / 0.5123 GB, free: 13.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001865/0.4213, allocations: 1.951 MB / 0.5142 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001167/0.4225, allocations: 395.8 kB / 0.5146 GB, free: 10.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/0.4229, allocations: 131.3 kB / 0.5147 GB, free: 10.56 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4229, allocations: 0 / 0.5147 GB, free: 10.56 MB / 446.1 MB Notification: Performance of Templates: time 0.2371/0.66, allocations: 30.85 MB / 0.5448 GB, free: 124.8 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 -s gbode -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