Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 61.12 kB / 306.9 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09359, allocations: 50.52 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009388/0.103, allocations: 8.182 MB / 365.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005073/0.1081, allocations: 2.727 MB / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.1095, allocations: 39.81 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.1116, allocations: 0.548 MB / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002084/0.1137, allocations: 0.575 MB / 369.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008433/0.1146, allocations: 251.8 kB / 369.8 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1595/0.2741, allocations: 2.35 MB / 372.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002222/0.2763, allocations: 1.164 MB / 373.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.2781, allocations: 0.7851 MB / 374.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.2802, allocations: 1.041 MB / 375.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007751/0.281, allocations: 142.9 kB / 375.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.2823, allocations: 245.3 kB / 375.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.2834, allocations: 0.5442 MB / 376 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.2855, allocations: 0.9463 MB / 377 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003186/0.2887, allocations: 2.484 MB / 379.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2887, allocations: 0 / 379.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2887, allocations: 0 / 379.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001052/0.2888, allocations: 1.594 kB / 379.4 MB, free: 9.398 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.005228/0.2941, allocations: 2.125 MB / 381.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2941, allocations: 12.94 kB / 381.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006738/0.2948, allocations: 216.9 kB / 381.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.2967, allocations: 1.099 MB / 382.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.831e-05/0.2967, allocations: 115.7 kB / 383 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/0.297, allocations: 152.8 kB / 383.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003115/0.3001, allocations: 1.968 MB / 385.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.766e-05/0.3002, allocations: 7.062 kB / 385.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.3003, allocations: 60.81 kB / 385.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.7e-05/0.3004, allocations: 77.92 kB / 385.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002478/0.3029, allocations: 1.582 MB / 386.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008991/0.3119, allocations: 6.352 MB / 393.2 MB, free: 1.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.3132, allocations: 0.8263 MB / 394 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008594/0.314, allocations: 0.5774 MB / 394.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002112/0.3143, allocations: 116.3 kB / 394.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.3143, allocations: 43.12 kB / 394.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.554e-06/0.3143, allocations: 0 / 394.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01285/0.3272, allocations: 5.839 MB / 400.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.3272, allocations: 62.47 kB / 400.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.3289, allocations: 1.149 MB / 401.8 MB, free: 13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.329, allocations: 41.7 kB / 401.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005498/0.3296, allocations: 0.7801 MB / 402.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.3298, allocations: 305.5 kB / 402.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003248/0.3302, allocations: 202.8 kB / 403.1 MB, free: 11.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3303, allocations: 353.9 kB / 403.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007555/0.3311, allocations: 0.5491 MB / 404 MB, free: 10.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.3321, allocations: 0.8783 MB / 404.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001844/0.3339, allocations: 1.522 MB / 406.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3339, allocations: 8 kB / 406.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003442/0.3374, allocations: 2.046 MB / 408.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.3374, allocations: 8 kB / 408.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.3375, allocations: 16.25 kB / 408.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.3389, allocations: 0.5548 MB / 409.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008293/0.3397, allocations: 238.8 kB / 409.3 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007706/0.3475, allocations: 7.903 MB / 417.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.3487, allocations: 79.88 kB / 417.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.3489, allocations: 51.94 kB / 417.3 MB, free: 12.79 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.001112/0.35, allocations: 0.5246 MB / 417.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003594/0.3504, allocations: 122.5 kB / 418 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.3536, allocations: 1.767 MB / 419.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3536, allocations: 8 kB / 419.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.3536, allocations: 4 kB / 419.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.3537, allocations: 7.453 kB / 419.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007236/0.3609, allocations: 3.759 MB / 423.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.361, allocations: 0 / 423.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005594/0.3615, allocations: 122.2 kB / 423.6 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/0.3632, allocations: 0.5914 MB / 424.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.75e-05/0.3633, allocations: 31.55 kB / 424.3 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007769/0.3711, allocations: 7.071 MB / 431.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3711, allocations: 4.125 kB / 431.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004048/0.3752, allocations: 2.488 MB / 433.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008004/0.376, allocations: 315.6 kB / 434.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003799/0.3764, allocations: 23.98 kB / 434.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000888/0.3773, allocations: 55.94 kB / 434.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.3775, allocations: 63.94 kB / 434.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.309e-05/0.3776, allocations: 23.98 kB / 434.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001403/0.379, allocations: 0.7934 MB / 435.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.379, allocations: 0 / 435.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001752/0.3808, allocations: 379.9 kB / 435.5 MB, free: 10.2 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.0004101/0.3812, allocations: 174 kB / 435.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003405/0.3846, allocations: 2.133 MB / 437.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3846, allocations: 0 / 437.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.3867, allocations: 1.3 MB / 439.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002345/0.3891, allocations: 350.3 kB / 439.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006524/0.3956, allocations: 4.013 MB / 443.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.3971, allocations: 1.455 MB / 444.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004096/0.3976, allocations: 91.42 kB / 445 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3976, allocations: 0 / 445 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of Templates: time 0.0629/0.4605, allocations: 59.19 MB / 0.4923 GB, free: 5.395 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DCBraking/IMC_DCBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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