Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 115 kB / 17.07 MB, free: 6 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.001513/0.001513, allocations: 192 kB / 18 MB, free: 5.082 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.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 47.92 kB / 351.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2987, allocations: 49.44 MB / 400.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01173/0.3105, allocations: 9.652 MB / 410.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007926/0.3184, allocations: 3.549 MB / 414 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/0.3207, allocations: 47.81 kB / 414 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.3235, allocations: 0.7025 MB / 414.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003718/0.3273, allocations: 0.8662 MB / 415.6 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.3291, allocations: 469.1 kB / 416 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005002/0.3341, allocations: 2.635 MB / 418.7 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.3377, allocations: 1.877 MB / 420.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.3403, allocations: 1.191 MB / 421.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002652/0.343, allocations: 1.498 MB / 423.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008073/0.3438, allocations: 304 kB / 423.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.3453, allocations: 0.5737 MB / 424.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.3466, allocations: 1.021 MB / 425.1 MB, free: 340 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002331/0.349, allocations: 1.485 MB / 426.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004926/0.3539, allocations: 4.291 MB / 430.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3539, allocations: 4 kB / 430.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3539, allocations: 0 / 430.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.3541, allocations: 4 kB / 430.9 MB, free: 10.53 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.006454/0.3605, allocations: 3.158 MB / 434.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3606, allocations: 15.97 kB / 434.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009447/0.3615, allocations: 325.2 kB / 434.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.3644, allocations: 1.689 MB / 436.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.3646, allocations: 152 kB / 436.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.365, allocations: 207.9 kB / 436.4 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004689/0.3697, allocations: 2.694 MB / 439.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.164e-05/0.3697, allocations: 4 kB / 439.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/0.3699, allocations: 83.98 kB / 439.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001877/0.3701, allocations: 99.92 kB / 439.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004133/0.3743, allocations: 2.28 MB / 441.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01308/0.3873, allocations: 8.142 MB / 449.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.3903, allocations: 1.624 MB / 451.4 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.3923, allocations: 1.101 MB / 452.5 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002541/0.3926, allocations: 122.1 kB / 452.6 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.3926, allocations: 59.48 kB / 452.6 MB, free: 4.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.489e-06/0.3926, allocations: 0 / 452.6 MB, free: 4.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01339/0.406, allocations: 6.452 MB / 459.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.4061, allocations: 64.72 kB / 459.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.4097, allocations: 2.156 MB / 461.3 MB, free: 11.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.4098, allocations: 45.7 kB / 461.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.4109, allocations: 1.108 MB / 462.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/0.4115, allocations: 461.3 kB / 462.9 MB, free: 9.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005056/0.412, allocations: 235.5 kB / 463.2 MB, free: 9.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.4122, allocations: 357.9 kB / 463.5 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.4137, allocations: 0.7652 MB / 464.3 MB, free: 8.434 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.4152, allocations: 1.013 MB / 465.3 MB, free: 7.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002866/0.4181, allocations: 1.873 MB / 467.2 MB, free: 5.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.4181, allocations: 0 / 467.2 MB, free: 5.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005226/0.4233, allocations: 2.761 MB / 469.9 MB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.4234, allocations: 12.25 kB / 469.9 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.4234, allocations: 8 kB / 469.9 MB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/0.4255, allocations: 0.785 MB / 470.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.4266, allocations: 267.6 kB / 471 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/0.4383, allocations: 9.594 MB / 480.6 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.4397, allocations: 83.91 kB / 480.7 MB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.4398, allocations: 56.05 kB / 480.7 MB, free: 7.5 MB / 398.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.001294/0.4411, allocations: 0.7433 MB / 481.5 MB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003871/0.4415, allocations: 201.5 kB / 481.7 MB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004349/0.4459, allocations: 2.5 MB / 484.2 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.499e-05/0.4459, allocations: 12 kB / 484.2 MB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.446, allocations: 11.98 kB / 484.2 MB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.446, allocations: 7.922 kB / 484.2 MB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008417/0.4544, allocations: 4.926 MB / 489.1 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.4544, allocations: 3.938 kB / 489.1 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009791/0.4554, allocations: 215.7 kB / 489.3 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.4571, allocations: 0.657 MB / 490 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.4573, allocations: 31.98 kB / 490 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009254/0.4665, allocations: 8.729 MB / 498.7 MB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4665, allocations: 0 / 498.7 MB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.4729, allocations: 3.532 MB / 0.4905 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/0.4743, allocations: 446.5 kB / 0.4909 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.4746, allocations: 28 kB / 0.491 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009425/0.4756, allocations: 83.89 kB / 0.491 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/0.4759, allocations: 104.7 kB / 0.4911 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.476, allocations: 39.98 kB / 0.4912 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00211/0.4781, allocations: 1.523 MB / 0.4927 GB, free: 15.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4781, allocations: 0 / 0.4927 GB, free: 15.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002042/0.4802, allocations: 0.5233 MB / 0.4932 GB, free: 14.55 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.001191/0.4814, allocations: 459.4 kB / 0.4936 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004251/0.4857, allocations: 2.392 MB / 0.4959 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4857, allocations: 0 / 0.4959 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.4883, allocations: 1.59 MB / 0.4975 GB, free: 10.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/0.4902, allocations: 454.7 kB / 0.4979 GB, free: 9.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007365/0.4975, allocations: 5.125 MB / 0.5029 GB, free: 4.547 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.4991, allocations: 1.955 MB / 0.5048 GB, free: 2.559 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001006/0.5001, allocations: 387.7 kB / 0.5052 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.5004, allocations: 131.4 kB / 0.5053 GB, free: 2.047 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5004, allocations: 0 / 0.5053 GB, free: 2.047 MB / 430.1 MB Notification: Performance of Templates: time 0.08689/0.5873, allocations: 30.55 MB / 0.5352 GB, free: 3.719 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches