Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002348/0.002348, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 55.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2957, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01098/0.3067, allocations: 9.719 MB / 419 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006722/0.3135, allocations: 3.751 MB / 422.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.315, allocations: 55.75 kB / 422.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.3169, allocations: 0.6911 MB / 423.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.3194, allocations: 0.9207 MB / 424.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.3206, allocations: 475.1 kB / 424.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.3237, allocations: 2.654 MB / 427.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00229/0.326, allocations: 1.877 MB / 429.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.3279, allocations: 1.203 MB / 430.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.3302, allocations: 1.514 MB / 432.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006155/0.3309, allocations: 304 kB / 432.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.332, allocations: 0.5543 MB / 433 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009467/0.333, allocations: 1.021 MB / 434 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.3346, allocations: 1.493 MB / 435.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004613/0.3393, allocations: 4.304 MB / 439.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3393, allocations: 4 kB / 439.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3393, allocations: 0 / 439.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.48e-05/0.3394, allocations: 3.938 kB / 439.8 MB, free: 2.891 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.006075/0.3455, allocations: 3.173 MB / 443 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3455, allocations: 16.03 kB / 443 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.3466, allocations: 357.1 kB / 443.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002714/0.3493, allocations: 1.728 MB / 445.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.3495, allocations: 148 kB / 445.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003232/0.3498, allocations: 215.9 kB / 445.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004364/0.3542, allocations: 2.69 MB / 448.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.517e-05/0.3543, allocations: 7.906 kB / 448.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.3544, allocations: 80 kB / 448.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.3546, allocations: 95.94 kB / 448.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/0.3584, allocations: 2.283 MB / 450.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01253/0.371, allocations: 8.131 MB / 458.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.3739, allocations: 1.635 MB / 460.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.3758, allocations: 1.093 MB / 461.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002623/0.3761, allocations: 135.1 kB / 461.6 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.3762, allocations: 47.5 kB / 461.6 MB, free: 12.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.286e-06/0.3762, allocations: 0 / 461.6 MB, free: 12.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.0126/0.3888, allocations: 6.452 MB / 468.1 MB, free: 5.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.3889, allocations: 72.7 kB / 468.1 MB, free: 5.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.3916, allocations: 2.173 MB / 470.3 MB, free: 3.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.3918, allocations: 49.7 kB / 470.4 MB, free: 3.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007839/0.3926, allocations: 1.127 MB / 471.5 MB, free: 2.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.393, allocations: 449.4 kB / 471.9 MB, free: 2.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/0.3934, allocations: 247.4 kB / 472.2 MB, free: 1.797 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3935, allocations: 361.9 kB / 472.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.3949, allocations: 0.7652 MB / 473.3 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.3964, allocations: 1.013 MB / 474.3 MB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.3992, allocations: 1.861 MB / 476.2 MB, free: 13.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3992, allocations: 0 / 476.2 MB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005222/0.4044, allocations: 2.761 MB / 478.9 MB, free: 10.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.4045, allocations: 12.03 kB / 478.9 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.4045, allocations: 8 kB / 478.9 MB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/0.4066, allocations: 0.7811 MB / 479.7 MB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.4077, allocations: 271.6 kB / 480 MB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.4201, allocations: 9.59 MB / 489.6 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.4218, allocations: 87.89 kB / 489.7 MB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.422, allocations: 63.98 kB / 489.7 MB, free: 15.74 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.001313/0.4233, allocations: 0.7434 MB / 490.5 MB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003966/0.4237, allocations: 205.5 kB / 490.7 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004366/0.4281, allocations: 2.493 MB / 493.2 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/0.4281, allocations: 12 kB / 493.2 MB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4281, allocations: 11.94 kB / 493.2 MB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.4282, allocations: 7.969 kB / 493.2 MB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008301/0.4365, allocations: 4.937 MB / 498.1 MB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4365, allocations: 4 kB / 498.1 MB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/0.4375, allocations: 211.7 kB / 498.3 MB, free: 7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/0.4392, allocations: 0.6551 MB / 499 MB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.637e-05/0.4393, allocations: 36.05 kB / 499 MB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008715/0.448, allocations: 8.718 MB / 0.4958 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.448, allocations: 7.969 kB / 0.4959 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005652/0.4537, allocations: 3.54 MB / 0.4993 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008049/0.4545, allocations: 446.4 kB / 0.4997 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/0.4547, allocations: 35.98 kB / 0.4998 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008608/0.4556, allocations: 83.89 kB / 0.4999 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.4559, allocations: 96.84 kB / 0.4999 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.456, allocations: 47.98 kB / 0.5 GB, free: 8.848 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001921/0.4579, allocations: 1.528 MB / 0.5015 GB, free: 7.297 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4579, allocations: 0 / 0.5015 GB, free: 7.297 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00158/0.4595, allocations: 0.5273 MB / 0.502 GB, free: 6.77 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.001063/0.4606, allocations: 463.1 kB / 0.5024 GB, free: 6.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003996/0.4646, allocations: 2.38 MB / 0.5048 GB, free: 4.023 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4646, allocations: 4 kB / 0.5048 GB, free: 4.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002451/0.4671, allocations: 1.594 MB / 0.5063 GB, free: 2.363 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.4689, allocations: 466.4 kB / 0.5068 GB, free: 1.914 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008349/0.4772, allocations: 5.13 MB / 0.5118 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/0.479, allocations: 1.955 MB / 0.5137 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001202/0.4803, allocations: 395.8 kB / 0.5141 GB, free: 10.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.4806, allocations: 131.4 kB / 0.5142 GB, free: 10.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4806, allocations: 0 / 0.5142 GB, free: 10.23 MB / 446.1 MB Notification: Performance of Templates: time 0.2504/0.7311, allocations: 30.63 MB / 0.5441 GB, free: 125.4 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches