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.001797/0.001797, allocations: 116.1 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 62.62 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1088, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.0124/0.1212, allocations: 9.636 MB / 366.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007337/0.1286, allocations: 3.72 MB / 370.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.1303, allocations: 43.81 kB / 370.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002368/0.1327, allocations: 0.6023 MB / 371 MB, free: 352 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1961/0.3288, allocations: 0.7706 MB / 371.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.3302, allocations: 418.2 kB / 372.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004014/0.3342, allocations: 2.658 MB / 374.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002364/0.3366, allocations: 1.883 MB / 376.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.3395, allocations: 1.205 MB / 377.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002876/0.3424, allocations: 1.594 MB / 379.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007539/0.3431, allocations: 305.1 kB / 379.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001599/0.3447, allocations: 0.5519 MB / 380.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.3458, allocations: 0.9933 MB / 381.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002329/0.3481, allocations: 1.486 MB / 382.8 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005866/0.354, allocations: 4.256 MB / 387.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.3541, allocations: 0 / 387.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3541, allocations: 0 / 387.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002245/0.3543, allocations: 0 / 387.1 MB, free: 6.359 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.009479/0.3638, allocations: 3.18 MB / 390.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3638, allocations: 8.938 kB / 390.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.3652, allocations: 365.7 kB / 390.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.3679, allocations: 1.669 MB / 392.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.368, allocations: 152.8 kB / 392.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003644/0.3684, allocations: 209 kB / 392.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005018/0.3734, allocations: 2.697 MB / 395.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.156e-05/0.3735, allocations: 6.188 kB / 395.4 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.3737, allocations: 81.41 kB / 395.4 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.3739, allocations: 102.5 kB / 395.5 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003852/0.3777, allocations: 2.281 MB / 397.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01547/0.3932, allocations: 8.229 MB / 406.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/0.3964, allocations: 1.637 MB / 407.7 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.3984, allocations: 1.076 MB / 408.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.3987, allocations: 129.2 kB / 408.9 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.3988, allocations: 47.56 kB / 408.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.368e-06/0.3988, allocations: 0 / 408.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.0153/0.4141, allocations: 6.458 MB / 415.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.4142, allocations: 64.72 kB / 415.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005112/0.4193, allocations: 2.181 MB / 417.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002636/0.4196, allocations: 45.7 kB / 417.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.421, allocations: 1.119 MB / 418.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00076/0.4218, allocations: 459.3 kB / 419.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008291/0.4226, allocations: 246.5 kB / 419.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4229, allocations: 353.9 kB / 419.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.4243, allocations: 0.7651 MB / 420.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.4261, allocations: 1.009 MB / 421.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003222/0.4293, allocations: 1.864 MB / 423.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.4293, allocations: 8 kB / 423.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005876/0.4352, allocations: 2.757 MB / 426.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.4353, allocations: 16.23 kB / 426.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.4353, allocations: 8 kB / 426.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/0.4376, allocations: 0.7886 MB / 427.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.4389, allocations: 267.6 kB / 427.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.453, allocations: 9.604 MB / 436.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.4551, allocations: 87.89 kB / 437 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/0.4554, allocations: 59.81 kB / 437.1 MB, free: 8.559 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.001819/0.4572, allocations: 0.7472 MB / 437.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008874/0.4581, allocations: 205.4 kB / 438 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005554/0.4637, allocations: 2.489 MB / 440.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/0.4638, allocations: 16 kB / 440.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.28e-05/0.4638, allocations: 4 kB / 440.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.4638, allocations: 11.97 kB / 440.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.4747, allocations: 4.938 MB / 445.5 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.4748, allocations: 4 kB / 445.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.4759, allocations: 219.6 kB / 445.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.4779, allocations: 0.6631 MB / 446.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.478, allocations: 27.98 kB / 446.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.4881, allocations: 8.73 MB / 455.1 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4881, allocations: 0 / 455.1 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/0.4952, allocations: 3.538 MB / 458.6 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.4964, allocations: 450.3 kB / 459.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006137/0.497, allocations: 28 kB / 459.1 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.4984, allocations: 87.88 kB / 459.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003549/0.4988, allocations: 108.8 kB / 459.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.4989, allocations: 35.98 kB / 459.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002886/0.5018, allocations: 1.536 MB / 460.9 MB, free: 144 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5018, allocations: 0 / 460.9 MB, free: 144 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.002533/0.5044, allocations: 0.5235 MB / 461.4 MB, free: 15.61 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.001254/0.5056, allocations: 450.3 kB / 461.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.5117, allocations: 2.868 MB / 464.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.5117, allocations: 1.25 kB / 464.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002897/0.5146, allocations: 1.597 MB / 466.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/0.5177, allocations: 468.4 kB / 466.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.5291, allocations: 6.137 MB / 472.9 MB, free: 4.117 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.5317, allocations: 1.963 MB / 474.9 MB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00169/0.5334, allocations: 399.7 kB / 475.3 MB, free: 1.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005743/0.5339, allocations: 135.4 kB / 475.4 MB, free: 1.59 MB / 382.1 MB Notification: Performance of SimCode: time 5e-07/0.534, allocations: 0 / 475.4 MB, free: 1.59 MB / 382.1 MB Notification: Performance of Templates: time 0.05799/0.592, allocations: 30.08 MB / 0.4936 GB, free: 3.797 MB / 414.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