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.001163/0.001163, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2734, allocations: 50.55 MB / 409.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01209/0.2856, allocations: 9.707 MB / 419 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007888/0.2935, allocations: 3.755 MB / 422.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.2953, allocations: 47.81 kB / 422.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.2978, allocations: 0.6676 MB / 423.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003687/0.3015, allocations: 0.8699 MB / 424.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.3031, allocations: 474.8 kB / 424.8 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003731/0.3068, allocations: 2.662 MB / 427.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002654/0.3095, allocations: 1.881 MB / 429.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.3115, allocations: 1.207 MB / 430.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002395/0.3139, allocations: 1.502 MB / 432 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007219/0.3147, allocations: 307.9 kB / 432.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.3161, allocations: 0.5581 MB / 432.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.3174, allocations: 1.021 MB / 433.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002081/0.3195, allocations: 1.489 MB / 435.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004564/0.324, allocations: 4.304 MB / 439.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3241, allocations: 4 kB / 439.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3241, allocations: 0 / 439.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001234/0.3242, allocations: 0 / 439.7 MB, free: 2.965 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.006636/0.3308, allocations: 3.181 MB / 442.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3309, allocations: 8.031 kB / 442.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/0.3319, allocations: 365 kB / 443.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002568/0.3345, allocations: 1.724 MB / 445 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.3346, allocations: 152 kB / 445.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.3349, allocations: 203.9 kB / 445.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004081/0.339, allocations: 2.694 MB / 448 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.291e-05/0.3391, allocations: 11.91 kB / 448 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.3393, allocations: 83.98 kB / 448.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.3394, allocations: 95.92 kB / 448.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003604/0.343, allocations: 2.276 MB / 450.5 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/0.3556, allocations: 8.139 MB / 458.6 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003143/0.3588, allocations: 1.627 MB / 460.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001957/0.3607, allocations: 1.097 MB / 461.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002948/0.3611, allocations: 127.1 kB / 461.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.3611, allocations: 51.56 kB / 461.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.785e-06/0.3611, allocations: 0 / 461.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01285/0.374, allocations: 6.46 MB / 468 MB, free: 6.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.3741, allocations: 64.72 kB / 468.1 MB, free: 5.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003007/0.3771, allocations: 2.173 MB / 470.2 MB, free: 3.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.3772, allocations: 49.7 kB / 470.3 MB, free: 3.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007725/0.378, allocations: 1.119 MB / 471.4 MB, free: 2.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003554/0.3783, allocations: 453.4 kB / 471.8 MB, free: 2.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004092/0.3788, allocations: 247.4 kB / 472.1 MB, free: 1.875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3789, allocations: 365.9 kB / 472.4 MB, free: 1.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.3801, allocations: 0.7574 MB / 473.2 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.3815, allocations: 1.013 MB / 474.2 MB, free: 15.65 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.3841, allocations: 1.861 MB / 476.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3841, allocations: 4 kB / 476.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004679/0.3888, allocations: 2.769 MB / 478.8 MB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3888, allocations: 8 kB / 478.9 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.3889, allocations: 8 kB / 478.9 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/0.3908, allocations: 0.793 MB / 479.7 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.3918, allocations: 267.6 kB / 479.9 MB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.4028, allocations: 9.59 MB / 489.5 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.404, allocations: 87.84 kB / 489.6 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.4042, allocations: 59.97 kB / 489.6 MB, free: 15.81 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.001243/0.4055, allocations: 0.7394 MB / 490.4 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.4059, allocations: 201.6 kB / 490.6 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004385/0.4103, allocations: 2.493 MB / 493.1 MB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.725e-05/0.4104, allocations: 19.98 kB / 493.1 MB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/0.4104, allocations: 15.94 kB / 493.1 MB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.4104, allocations: 3.984 kB / 493.1 MB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0091/0.4196, allocations: 4.941 MB / 498.1 MB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.4196, allocations: 0 / 498.1 MB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4206, allocations: 219.9 kB / 498.3 MB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.4225, allocations: 0.6471 MB / 498.9 MB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.4227, allocations: 39.97 kB / 499 MB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009891/0.4326, allocations: 8.718 MB / 0.4958 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.4326, allocations: 7.969 kB / 0.4958 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006412/0.4391, allocations: 3.536 MB / 0.4992 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009483/0.44, allocations: 442.4 kB / 0.4997 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003966/0.4404, allocations: 36.05 kB / 0.4997 GB, free: 9.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4415, allocations: 87.91 kB / 0.4998 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.4418, allocations: 100.8 kB / 0.4999 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4419, allocations: 35.98 kB / 0.4999 GB, free: 8.926 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.4442, allocations: 1.54 MB / 0.5014 GB, free: 7.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4442, allocations: 0 / 0.5014 GB, free: 7.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001947/0.4462, allocations: 0.5234 MB / 0.5019 GB, free: 6.84 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.001132/0.4473, allocations: 458.8 kB / 0.5024 GB, free: 6.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004306/0.4516, allocations: 2.388 MB / 0.5047 GB, free: 4.086 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.996e-06/0.4517, allocations: 4.438 kB / 0.5047 GB, free: 4.082 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002548/0.4542, allocations: 1.597 MB / 0.5063 GB, free: 2.422 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.4563, allocations: 452 kB / 0.5067 GB, free: 1.988 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.4671, allocations: 5.127 MB / 0.5117 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002429/0.4696, allocations: 1.958 MB / 0.5136 GB, free: 10.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001338/0.471, allocations: 395.8 kB / 0.514 GB, free: 10.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005271/0.4715, allocations: 127.4 kB / 0.5141 GB, free: 10.31 MB / 446.1 MB Notification: Performance of SimCode: time 1.844e-06/0.4715, allocations: 0 / 0.5141 GB, free: 10.31 MB / 446.1 MB Notification: Performance of Templates: time 0.2579/0.7294, allocations: 30.63 MB / 0.544 GB, free: 125.3 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