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.001275/0.001275, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 64.98 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09107, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01065/0.1017, allocations: 9.702 MB / 368.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1773/0.2791, allocations: 3.761 MB / 372.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.2809, allocations: 49.53 kB / 372.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.2829, allocations: 0.665 MB / 373.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002285/0.2852, allocations: 0.8692 MB / 373.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.2863, allocations: 473.4 kB / 374.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.2898, allocations: 2.666 MB / 377.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001938/0.2917, allocations: 1.881 MB / 379 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.2937, allocations: 1.193 MB / 380.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00181/0.2955, allocations: 1.505 MB / 381.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004063/0.2959, allocations: 309.6 kB / 382 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001064/0.297, allocations: 0.5525 MB / 382.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009848/0.298, allocations: 1.026 MB / 383.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.2995, allocations: 1.49 MB / 385 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.3034, allocations: 4.305 MB / 389.3 MB, free: 5.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3034, allocations: 0 / 389.3 MB, free: 5.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3034, allocations: 1.031 kB / 389.3 MB, free: 5.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.99e-05/0.3035, allocations: 0 / 389.3 MB, free: 5.57 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.005635/0.3091, allocations: 3.181 MB / 392.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3092, allocations: 9.469 kB / 392.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.3103, allocations: 360.7 kB / 392.9 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.3131, allocations: 1.724 MB / 394.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.3132, allocations: 156 kB / 394.8 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003094/0.3135, allocations: 208.8 kB / 395 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003996/0.3175, allocations: 2.7 MB / 397.7 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.276e-05/0.3176, allocations: 6.344 kB / 397.7 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.3177, allocations: 84.77 kB / 397.7 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.704e-05/0.3178, allocations: 93.69 kB / 397.8 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003855/0.3217, allocations: 2.282 MB / 400.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/0.3357, allocations: 8.131 MB / 408.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002984/0.3388, allocations: 1.628 MB / 409.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001867/0.3407, allocations: 1.08 MB / 411 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002632/0.3409, allocations: 129.5 kB / 411.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.341, allocations: 51.48 kB / 411.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.341, allocations: 0 / 411.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01341/0.3544, allocations: 6.452 MB / 417.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.3545, allocations: 64.72 kB / 417.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.3577, allocations: 2.177 MB / 419.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3578, allocations: 45.7 kB / 419.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008216/0.3586, allocations: 1.118 MB / 421 MB, free: 9.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003474/0.359, allocations: 459.7 kB / 421.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004152/0.3594, allocations: 243.3 kB / 421.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3596, allocations: 361.9 kB / 422 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.3609, allocations: 0.7612 MB / 422.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.3624, allocations: 1.013 MB / 423.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002858/0.3653, allocations: 1.86 MB / 425.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3653, allocations: 0 / 425.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004955/0.3702, allocations: 2.769 MB / 428.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3703, allocations: 4 kB / 428.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3703, allocations: 8 kB / 428.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001931/0.3722, allocations: 0.7853 MB / 429.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.3734, allocations: 271.5 kB / 429.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.3853, allocations: 9.596 MB / 439.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.3868, allocations: 94.64 kB / 439.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.387, allocations: 51.98 kB / 439.2 MB, free: 7.246 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.001364/0.3883, allocations: 0.7483 MB / 440 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004252/0.3888, allocations: 213.4 kB / 440.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004553/0.3933, allocations: 2.485 MB / 442.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-05/0.3934, allocations: 16 kB / 442.7 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.3934, allocations: 8 kB / 442.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.3934, allocations: 3.984 kB / 442.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008856/0.4023, allocations: 4.94 MB / 447.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4023, allocations: 8 kB / 447.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.4033, allocations: 219.9 kB / 447.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001732/0.4051, allocations: 0.6512 MB / 448.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.4052, allocations: 31.97 kB / 448.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009008/0.4142, allocations: 8.723 MB / 457.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4142, allocations: 0 / 457.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006133/0.4203, allocations: 3.54 MB / 460.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.4216, allocations: 446.3 kB / 461.2 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003132/0.4219, allocations: 34.33 kB / 461.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4229, allocations: 83.91 kB / 461.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.4232, allocations: 96.84 kB / 461.5 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4234, allocations: 39.98 kB / 461.5 MB, free: 420 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002281/0.4256, allocations: 1.536 MB / 463 MB, free: 14.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4257, allocations: 0 / 463 MB, free: 14.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001798/0.4275, allocations: 0.5234 MB / 463.6 MB, free: 14.33 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.001174/0.4286, allocations: 464.5 kB / 464 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0044/0.4331, allocations: 2.388 MB / 466.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.4331, allocations: 0 / 466.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002665/0.4358, allocations: 1.597 MB / 468 MB, free: 9.926 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.4382, allocations: 456.6 kB / 468.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00868/0.4469, allocations: 5.134 MB / 473.6 MB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/0.4486, allocations: 1.962 MB / 475.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001146/0.4497, allocations: 395.8 kB / 475.9 MB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/0.4501, allocations: 127.4 kB / 476 MB, free: 1.812 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4501, allocations: 0 / 476 MB, free: 1.812 MB / 382.1 MB Notification: Performance of Templates: time 0.04782/0.4979, allocations: 30.18 MB / 0.4944 GB, free: 3.875 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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