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.001107/0.001107, allocations: 112.6 kB / 16.51 MB, free: 6.715 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.001144/0.001144, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 50.95 kB / 300 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1099, allocations: 49.45 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01199/0.1219, allocations: 9.576 MB / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008111/0.1301, allocations: 3.549 MB / 362.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.1324, allocations: 47.81 kB / 362.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0031/0.1356, allocations: 0.5828 MB / 363.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003384/0.139, allocations: 0.7461 MB / 363.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001819/0.1408, allocations: 410.5 kB / 364.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0044/0.1452, allocations: 3.017 MB / 367.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002691/0.148, allocations: 1.548 MB / 368.9 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.1504, allocations: 1.035 MB / 369.9 MB, free: 212 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1632/0.3136, allocations: 1.501 MB / 371.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.3148, allocations: 190.4 kB / 371.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.3173, allocations: 473.7 kB / 372.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001957/0.3193, allocations: 0.8743 MB / 372.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002398/0.3217, allocations: 1.358 MB / 374.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.326, allocations: 4.144 MB / 378.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.326, allocations: 1.656 kB / 378.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.326, allocations: 1.062 kB / 378.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.777e-05/0.3261, allocations: 0 / 378.4 MB, free: 10.92 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.005855/0.332, allocations: 3.158 MB / 381.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.332, allocations: 13.41 kB / 381.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/0.3328, allocations: 329 kB / 381.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.3351, allocations: 1.653 MB / 383.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.757e-05/0.3352, allocations: 152.4 kB / 383.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003049/0.3355, allocations: 209.1 kB / 383.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004162/0.3397, allocations: 2.693 MB / 386.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.93e-05/0.3397, allocations: 2.906 kB / 386.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/0.3399, allocations: 81.12 kB / 386.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.3401, allocations: 98.52 kB / 386.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003721/0.3438, allocations: 2.277 MB / 389.1 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.3548, allocations: 8.239 MB / 397.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.3573, allocations: 1.627 MB / 398.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.3591, allocations: 1.088 MB / 400 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002386/0.3593, allocations: 123.9 kB / 400.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3594, allocations: 46.81 kB / 400.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.125e-06/0.3594, allocations: 0 / 400.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01472/0.3741, allocations: 6.452 MB / 406.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.3742, allocations: 64.72 kB / 406.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.3782, allocations: 2.159 MB / 408.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004007/0.3786, allocations: 45.7 kB / 408.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008881/0.3795, allocations: 1.107 MB / 410 MB, free: 6.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005122/0.38, allocations: 460 kB / 410.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004316/0.3805, allocations: 242.7 kB / 410.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3806, allocations: 361.9 kB / 411.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.382, allocations: 0.7574 MB / 411.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.3835, allocations: 1.012 MB / 412.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002833/0.3863, allocations: 1.857 MB / 414.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.3863, allocations: 4 kB / 414.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005215/0.3916, allocations: 2.77 MB / 417.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.3916, allocations: 8 kB / 417.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.3916, allocations: 8 kB / 417.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/0.3936, allocations: 0.785 MB / 418.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.3947, allocations: 265.4 kB / 418.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.4055, allocations: 8.749 MB / 427.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.407, allocations: 92.08 kB / 427.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.4071, allocations: 55.98 kB / 427.4 MB, free: 4.352 MB / 334.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.001341/0.4085, allocations: 0.738 MB / 428.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000393/0.4089, allocations: 209.4 kB / 428.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.4133, allocations: 2.485 MB / 430.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.4134, allocations: 20 kB / 430.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4134, allocations: 4 kB / 430.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.4134, allocations: 3.984 kB / 430.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008168/0.4216, allocations: 4.95 MB / 435.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.4216, allocations: 0 / 435.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.4226, allocations: 212.8 kB / 436 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.4245, allocations: 0.6541 MB / 436.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.4246, allocations: 35.97 kB / 436.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008611/0.4333, allocations: 7.927 MB / 444.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4333, allocations: 0 / 444.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006139/0.4394, allocations: 3.532 MB / 448.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009387/0.4404, allocations: 446.4 kB / 448.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002584/0.4407, allocations: 31.92 kB / 448.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009572/0.4416, allocations: 87.89 kB / 448.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.4419, allocations: 100.3 kB / 448.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.903e-05/0.442, allocations: 47.92 kB / 448.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002037/0.4441, allocations: 1.515 MB / 450.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4441, allocations: 4 kB / 450.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001804/0.4459, allocations: 0.5234 MB / 450.9 MB, free: 12.39 MB / 366.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.001076/0.447, allocations: 455.8 kB / 451.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004675/0.4517, allocations: 2.38 MB / 453.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.4517, allocations: 8.062 kB / 453.8 MB, free: 9.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.4545, allocations: 1.605 MB / 455.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002887/0.4574, allocations: 429.8 kB / 455.8 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009384/0.4668, allocations: 6.124 MB / 461.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/0.4686, allocations: 1.951 MB / 463.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001306/0.4699, allocations: 395.6 kB / 464.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.4704, allocations: 131.4 kB / 464.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4704, allocations: 0 / 464.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of Templates: time 0.0473/0.5177, allocations: 28.93 MB / 493.3 MB, free: 2.352 MB / 398.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