Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.584/1.584, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 64.14 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09941, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01052/0.11, allocations: 8.213 MB / 366.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005503/0.1155, allocations: 2.746 MB / 369.4 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.1166, allocations: 43.81 kB / 369.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.1185, allocations: 0.6096 MB / 370 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001802/0.1203, allocations: 0.6288 MB / 370.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006738/0.121, allocations: 283.6 kB / 371 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.148/0.269, allocations: 2.032 MB / 373 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.2709, allocations: 1.418 MB / 374.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.2724, allocations: 0.8834 MB / 375.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.2738, allocations: 1.065 MB / 376.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003428/0.2741, allocations: 226.8 kB / 376.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006888/0.2748, allocations: 325.4 kB / 376.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006007/0.2754, allocations: 0.6305 MB / 377.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.2765, allocations: 1.032 MB / 378.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003092/0.2796, allocations: 2.967 MB / 381.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2796, allocations: 6.078 kB / 381.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2796, allocations: 0 / 381.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.814e-05/0.2797, allocations: 0 / 381.5 MB, free: 9.066 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00463/0.2843, allocations: 2.132 MB / 383.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2844, allocations: 9.531 kB / 383.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006983/0.2851, allocations: 221.6 kB / 383.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.287, allocations: 1.1 MB / 385 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.2871, allocations: 111.7 kB / 385.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002527/0.2873, allocations: 158.8 kB / 385.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003085/0.2904, allocations: 1.967 MB / 387.2 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.2905, allocations: 12.58 kB / 387.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2906, allocations: 57.84 kB / 387.3 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.162e-05/0.2907, allocations: 78.36 kB / 387.4 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.2932, allocations: 1.583 MB / 388.9 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008961/0.3022, allocations: 6.343 MB / 395.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.3035, allocations: 0.8278 MB / 396.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008458/0.3043, allocations: 0.5802 MB / 396.7 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001804/0.3045, allocations: 117.7 kB / 396.8 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.3046, allocations: 52.12 kB / 396.9 MB, free: 304 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.524e-06/0.3046, allocations: 0 / 396.9 MB, free: 304 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01388/0.3184, allocations: 5.83 MB / 402.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.3185, allocations: 64.34 kB / 402.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.3205, allocations: 1.149 MB / 403.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.3206, allocations: 37.7 kB / 403.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006715/0.3213, allocations: 0.7744 MB / 404.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000323/0.3216, allocations: 313.7 kB / 405 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.322, allocations: 206.8 kB / 405.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3222, allocations: 349.9 kB / 405.6 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/0.3231, allocations: 0.5413 MB / 406.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.3243, allocations: 0.8836 MB / 407 MB, free: 8.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.3264, allocations: 1.525 MB / 408.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.3265, allocations: 4 kB / 408.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003838/0.3303, allocations: 2.046 MB / 410.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.3304, allocations: 8.75 kB / 410.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.3304, allocations: 12 kB / 410.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.3319, allocations: 0.5586 MB / 411.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008775/0.3328, allocations: 245.6 kB / 411.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009716/0.3425, allocations: 8.653 MB / 420 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.3439, allocations: 71.94 kB / 420.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.344, allocations: 55.92 kB / 420.2 MB, free: 10.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001011/0.3451, allocations: 0.519 MB / 420.7 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.3454, allocations: 122.5 kB / 420.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.3487, allocations: 1.772 MB / 422.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.3488, allocations: 12.08 kB / 422.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3488, allocations: 4 kB / 422.6 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.3488, allocations: 3.984 kB / 422.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007023/0.3558, allocations: 3.75 MB / 426.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3559, allocations: 0 / 426.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005462/0.3564, allocations: 131.7 kB / 426.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/0.358, allocations: 0.5916 MB / 427.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.478e-05/0.3581, allocations: 23.98 kB / 427.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009159/0.3673, allocations: 7.707 MB / 434.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3673, allocations: 3.281 kB / 434.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.3717, allocations: 2.48 MB / 437.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000797/0.3725, allocations: 311.5 kB / 437.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.3727, allocations: 20 kB / 437.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006915/0.3734, allocations: 59.88 kB / 437.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.3736, allocations: 68.55 kB / 437.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.3737, allocations: 28 kB / 437.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.375, allocations: 0.7856 MB / 438.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.375, allocations: 7.75 kB / 438.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001547/0.3766, allocations: 376 kB / 438.9 MB, free: 7.023 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi) * 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 (63): * Single equations (assignments): 59 * Array equations: 0 * 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 {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003733/0.377, allocations: 174.6 kB / 439.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00415/0.3811, allocations: 2.371 MB / 441.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3812, allocations: 4 kB / 441.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002235/0.3834, allocations: 1.288 MB / 442.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.3854, allocations: 383.1 kB / 443.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005861/0.3913, allocations: 3.367 MB / 446.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.3926, allocations: 1.452 MB / 447.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003601/0.393, allocations: 87.42 kB / 448 MB, free: 13.75 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.393, allocations: 0 / 448 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Templates: time 0.07034/0.4634, allocations: 59.21 MB / 0.4953 GB, free: 2.598 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DCBraking/IMC_DCBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi,loadInertia.w,imc.idq_sr[1],imc.idq_sr[2],imc.is[1],imc.is[2],tauElectrical,tauShaft,wMechanical Variables in the result:imc.idq_rr[1],imc.idq_rr[2],imc.idq_sr[1],imc.idq_sr[2],imc.is[1],imc.is[2],loadInertia.phi,loadInertia.w,tauElectrical,tauShaft,time,wMechanical