Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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_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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 108.5 kB / 17.16 MB, free: 6.324 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.002143/0.002143, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.128/2.128, allocations: 222.9 MB / 241.7 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 51.39 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1461, allocations: 49.46 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01777/0.1639, allocations: 8.137 MB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008772/0.1727, allocations: 2.691 MB / 360.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.1754, allocations: 35.88 kB / 360.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003619/0.1792, allocations: 0.5323 MB / 361.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004335/0.1836, allocations: 0.575 MB / 362 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.185, allocations: 255.7 kB / 362.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003716/0.1887, allocations: 2.347 MB / 364.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.1905, allocations: 1.159 MB / 365.8 MB, free: 5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001796/0.1923, allocations: 0.782 MB / 366.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001861/0.1942, allocations: 1.031 MB / 367.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004066/0.1946, allocations: 144 kB / 367.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000823/0.1954, allocations: 243.8 kB / 368 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007053/0.1961, allocations: 0.5529 MB / 368.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.1974, allocations: 0.9447 MB / 369.5 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3313/0.5287, allocations: 2.466 MB / 371.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.49e-05/0.5288, allocations: 0 / 371.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.5288, allocations: 0.5625 kB / 371.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.529, allocations: 0 / 371.9 MB, free: 14.38 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.009088/0.5381, allocations: 2.126 MB / 374.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.234e-05/0.5382, allocations: 9.422 kB / 374.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.5394, allocations: 216 kB / 374.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.5427, allocations: 1.101 MB / 375.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.5429, allocations: 111.5 kB / 375.5 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004178/0.5433, allocations: 161.1 kB / 375.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006297/0.5496, allocations: 1.96 MB / 377.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.89e-05/0.5498, allocations: 7.469 kB / 377.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002575/0.5501, allocations: 61.72 kB / 377.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.5503, allocations: 78.83 kB / 377.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005056/0.5553, allocations: 1.588 MB / 379.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01506/0.5704, allocations: 6.334 MB / 385.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.5726, allocations: 0.84 MB / 386.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.574, allocations: 0.5724 MB / 387.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002891/0.5743, allocations: 115.5 kB / 387.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.5744, allocations: 45.19 kB / 387.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 5.561e-06/0.5744, allocations: 4 kB / 387.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01977/0.5942, allocations: 5.825 MB / 393.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.006e-05/0.5943, allocations: 64.53 kB / 393.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004071/0.5984, allocations: 1.144 MB / 394.3 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002209/0.5987, allocations: 42.05 kB / 394.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007295/0.5994, allocations: 0.772 MB / 395.1 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004308/0.5998, allocations: 305.5 kB / 395.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006259/0.6005, allocations: 203.8 kB / 395.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.6006, allocations: 357.5 kB / 396 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.6018, allocations: 0.5384 MB / 396.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.6032, allocations: 0.8831 MB / 397.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00276/0.6059, allocations: 1.518 MB / 398.9 MB, free: 1.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-05/0.606, allocations: 4.125 kB / 398.9 MB, free: 1.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.005474/0.6115, allocations: 2.046 MB / 400.9 MB, free: 48 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.6116, allocations: 12 kB / 401 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/0.6116, allocations: 8 kB / 401 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/0.6142, allocations: 0.5511 MB / 401.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.6156, allocations: 257.2 kB / 401.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01367/0.6293, allocations: 7.903 MB / 409.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/0.6317, allocations: 67.94 kB / 409.7 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004104/0.6321, allocations: 51.92 kB / 409.8 MB, free: 6.73 MB / 318.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.002032/0.6342, allocations: 0.5256 MB / 410.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007139/0.6349, allocations: 122.5 kB / 410.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005383/0.6403, allocations: 1.768 MB / 412.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.6404, allocations: 8 kB / 412.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/0.6404, allocations: 7.5 kB / 412.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.6405, allocations: 3.984 kB / 412.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.6525, allocations: 3.745 MB / 416 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/0.6525, allocations: 0 / 416 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.6536, allocations: 136.3 kB / 416.1 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003218/0.6569, allocations: 0.5877 MB / 416.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001712/0.6571, allocations: 23.98 kB / 416.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/0.6715, allocations: 7.083 MB / 423.8 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.6716, allocations: 0 / 423.8 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006296/0.6779, allocations: 2.476 MB / 426.3 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.6792, allocations: 315.6 kB / 426.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005483/0.6798, allocations: 20 kB / 426.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.6812, allocations: 55.94 kB / 426.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000352/0.6816, allocations: 71.55 kB / 426.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.6818, allocations: 24 kB / 426.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002194/0.684, allocations: 0.7855 MB / 427.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6841, allocations: 3.938 kB / 427.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003882/0.6879, allocations: 380 kB / 427.9 MB, free: 4.152 MB / 334.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.001101/0.6891, allocations: 180.5 kB / 428.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00692/0.6961, allocations: 2.135 MB / 430.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.6961, allocations: 0 / 430.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00383/0.7, allocations: 1.292 MB / 431.5 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003837/0.7038, allocations: 345.2 kB / 431.8 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.7152, allocations: 4.014 MB / 435.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.7174, allocations: 1.448 MB / 437.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006483/0.7181, allocations: 91.44 kB / 437.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.333e-06/0.7181, allocations: 0 / 437.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Templates: time 0.09789/0.816, allocations: 59.04 MB / 496.4 MB, free: 15.55 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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