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.0008244/0.0008244, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009179/0.0009179, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.7 MB / 247.5 MB, free: 9.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000261/0.000261, allocations: 8 kB / 308.4 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08796, allocations: 51.52 MB / 359.9 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007985/0.09599, allocations: 7.683 MB / 367.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.1008, allocations: 2.696 MB / 370.3 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.1018, allocations: 39.81 kB / 370.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.1036, allocations: 0.5479 MB / 370.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001813/0.1054, allocations: 0.575 MB / 371.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000718/0.1061, allocations: 255.7 kB / 371.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1577/0.2638, allocations: 2.35 MB / 374.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002152/0.266, allocations: 1.146 MB / 375.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001658/0.2677, allocations: 0.704 MB / 375.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.2696, allocations: 0.9298 MB / 376.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000523/0.2702, allocations: 103.1 kB / 376.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.2713, allocations: 200.5 kB / 377.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008545/0.2721, allocations: 0.4946 MB / 377.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001729/0.2739, allocations: 0.8972 MB / 378.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002974/0.2769, allocations: 2.415 MB / 380.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.2769, allocations: 0 / 380.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2769, allocations: 0 / 380.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.556e-05/0.277, allocations: 1.188 kB / 380.9 MB, free: 9.18 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.00388/0.2809, allocations: 1.806 MB / 382.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.2809, allocations: 10.31 kB / 382.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007478/0.2817, allocations: 224.4 kB / 383 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/0.2833, allocations: 1.109 MB / 384.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/0.2834, allocations: 109.8 kB / 384.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002705/0.2837, allocations: 153.8 kB / 384.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003201/0.2869, allocations: 1.966 MB / 386.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.928e-05/0.287, allocations: 10.14 kB / 386.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.2871, allocations: 63.25 kB / 386.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.707e-05/0.2872, allocations: 69.5 kB / 386.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002986/0.2902, allocations: 1.587 MB / 388 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008991/0.2992, allocations: 6.373 MB / 394.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.3005, allocations: 0.8315 MB / 395.2 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009314/0.3015, allocations: 0.5805 MB / 395.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002008/0.3017, allocations: 114.7 kB / 395.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.3017, allocations: 55.14 kB / 396 MB, free: 1.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.036e-06/0.3017, allocations: 0 / 396 MB, free: 1.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.0128/0.3145, allocations: 5.902 MB / 401.9 MB, free: 13.76 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.3146, allocations: 64.34 kB / 402 MB, free: 13.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.3163, allocations: 1.149 MB / 403.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.848e-05/0.3164, allocations: 45.7 kB / 403.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.3169, allocations: 0.7741 MB / 403.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.3172, allocations: 306.1 kB / 404.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.3173, allocations: 93.66 kB / 404.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3175, allocations: 349.9 kB / 404.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007627/0.3182, allocations: 0.5452 MB / 405.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009438/0.3192, allocations: 0.8829 MB / 406.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.321, allocations: 1.523 MB / 407.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.321, allocations: 4 kB / 407.6 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003407/0.3244, allocations: 2.04 MB / 409.7 MB, free: 5.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.3245, allocations: 8 kB / 409.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.3245, allocations: 16.25 kB / 409.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.3259, allocations: 0.5584 MB / 410.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008108/0.3267, allocations: 240.3 kB / 410.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007459/0.3342, allocations: 7.906 MB / 418.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.3356, allocations: 79.77 kB / 418.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3357, allocations: 48 kB / 418.5 MB, free: 12.41 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.001006/0.3367, allocations: 0.5197 MB / 419 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/0.337, allocations: 122.5 kB / 419.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.3399, allocations: 1.77 MB / 420.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3399, allocations: 12 kB / 420.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.34, allocations: 4 kB / 420.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.34, allocations: 3.984 kB / 420.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005939/0.3459, allocations: 3.748 MB / 424.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.3459, allocations: 0 / 424.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/0.3465, allocations: 132 kB / 424.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001529/0.348, allocations: 0.5949 MB / 425.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.431e-05/0.3481, allocations: 23.98 kB / 425.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007295/0.3554, allocations: 7.079 MB / 432.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3555, allocations: 4 kB / 432.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00377/0.3592, allocations: 2.482 MB / 435 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007016/0.36, allocations: 311.6 kB / 435.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.3602, allocations: 23.98 kB / 435.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006547/0.3608, allocations: 55.94 kB / 435.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.361, allocations: 68.52 kB / 435.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.718e-05/0.3611, allocations: 27.98 kB / 435.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.3622, allocations: 0.7856 MB / 436.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3622, allocations: 4 kB / 436.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001401/0.3636, allocations: 383.9 kB / 436.6 MB, free: 9.711 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.0003412/0.364, allocations: 175 kB / 436.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.3671, allocations: 2.128 MB / 438.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.3671, allocations: 8.062 kB / 438.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.3691, allocations: 1.292 MB / 440.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.3713, allocations: 351.3 kB / 440.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/0.377, allocations: 4.133 MB / 444.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.3781, allocations: 1.452 MB / 446.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.3785, allocations: 91.42 kB / 446.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3785, allocations: 0 / 446.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Templates: time 0.06071/0.4393, allocations: 58.97 MB / 0.4934 GB, free: 4.934 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