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.0008685/0.0008686, allocations: 97.22 kB / 17.31 MB, free: 6.391 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.001089/0.001089, allocations: 175 kB / 18.21 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002189, allocations: 11.94 kB / 302.1 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07341/0.07365, allocations: 50.42 MB / 352.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007147/0.08083, allocations: 7.653 MB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003242/0.08408, allocations: 2.649 MB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003536/0.08445, allocations: 39.81 kB / 362.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.08558, allocations: 0.5323 MB / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.0866, allocations: 0.575 MB / 364 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.08704, allocations: 251.8 kB / 364.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001886/0.08894, allocations: 2.351 MB / 366.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.09022, allocations: 1.152 MB / 367.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006475/0.09088, allocations: 0.6962 MB / 368.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009378/0.09182, allocations: 0.9297 MB / 369.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.09199, allocations: 100 kB / 369.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003778/0.09238, allocations: 199.8 kB / 369.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004405/0.09283, allocations: 0.4944 MB / 370.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007099/0.09355, allocations: 0.8955 MB / 371 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1399/0.2334, allocations: 2.405 MB / 373.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2335, allocations: 0 / 373.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2335, allocations: 0.6562 kB / 373.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.27e-05/0.2336, allocations: 0 / 373.4 MB, free: 13.73 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.003845/0.2374, allocations: 1.806 MB / 375.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2375, allocations: 10.92 kB / 375.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000838/0.2383, allocations: 213.3 kB / 375.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.2402, allocations: 1.103 MB / 376.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.977e-05/0.2403, allocations: 113.1 kB / 376.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.2406, allocations: 158.4 kB / 376.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003408/0.244, allocations: 1.959 MB / 378.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.766e-05/0.2441, allocations: 4.281 kB / 378.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.2443, allocations: 62.56 kB / 378.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.281e-05/0.2444, allocations: 81.52 kB / 378.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.247, allocations: 1.588 MB / 380.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008134/0.2551, allocations: 6.35 MB / 386.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.2564, allocations: 0.8457 MB / 387.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009084/0.2573, allocations: 0.5823 MB / 388.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.2575, allocations: 114 kB / 388.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.2575, allocations: 46.94 kB / 388.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 1.974e-06/0.2575, allocations: 1.031 kB / 388.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01224/0.2698, allocations: 5.893 MB / 394.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.2698, allocations: 66.02 kB / 394.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.2712, allocations: 1.147 MB / 395.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.2713, allocations: 41.58 kB / 395.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003619/0.2717, allocations: 0.774 MB / 396.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.2718, allocations: 303.8 kB / 396.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.2719, allocations: 96.14 kB / 396.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.272, allocations: 349.8 kB / 397.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.2727, allocations: 0.5375 MB / 397.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007487/0.2734, allocations: 0.8871 MB / 398.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.275, allocations: 1.519 MB / 400 MB, free: 1.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.275, allocations: 3.125 kB / 400 MB, free: 1.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002914/0.2779, allocations: 2.046 MB / 402.1 MB, free: 15.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2779, allocations: 16.06 kB / 402.1 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.278, allocations: 8 kB / 402.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.2794, allocations: 0.5497 MB / 402.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008108/0.2802, allocations: 246.8 kB / 402.9 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007437/0.2876, allocations: 7.913 MB / 410.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.2885, allocations: 67.84 kB / 410.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9e-05/0.2886, allocations: 55.92 kB / 410.9 MB, free: 6.48 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.0006978/0.2893, allocations: 0.5239 MB / 411.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.2895, allocations: 118.6 kB / 411.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.2925, allocations: 1.771 MB / 413.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.2925, allocations: 8 kB / 413.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.2925, allocations: 7.562 kB / 413.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.2926, allocations: 3.984 kB / 413.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/0.2984, allocations: 3.739 MB / 417.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2985, allocations: 0 / 417.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005363/0.299, allocations: 129.9 kB / 417.2 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/0.3006, allocations: 0.5925 MB / 417.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-05/0.3007, allocations: 23.98 kB / 417.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007291/0.308, allocations: 7.084 MB / 424.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.308, allocations: 2.625 kB / 424.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003621/0.3116, allocations: 2.485 MB / 427.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004717/0.3121, allocations: 318.3 kB / 427.7 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.3123, allocations: 23.98 kB / 427.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006771/0.313, allocations: 59.94 kB / 427.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3131, allocations: 60.56 kB / 427.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.855e-05/0.3132, allocations: 24 kB / 427.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.3142, allocations: 0.7893 MB / 428.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.3142, allocations: 0 / 428.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001176/0.3154, allocations: 378.6 kB / 429 MB, free: 3.898 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.0003009/0.3157, allocations: 184.3 kB / 429.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00299/0.3187, allocations: 2.133 MB / 431.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3187, allocations: 0 / 431.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.3207, allocations: 1.293 MB / 432.7 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.3226, allocations: 350 kB / 433 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/0.3276, allocations: 4.129 MB / 437.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.3286, allocations: 1.44 MB / 438.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.3289, allocations: 91.42 kB / 438.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3289, allocations: 0 / 438.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of Templates: time 0.05741/0.3863, allocations: 58.81 MB / 497.5 MB, free: 15.39 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