Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002665, allocations: 63.88 kB / 307 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1528, allocations: 50.54 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.01973/0.1726, allocations: 8.871 MB / 366.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00902/0.1817, allocations: 2.89 MB / 369.3 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.1837, allocations: 47.81 kB / 369.3 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.1863, allocations: 0.6055 MB / 369.9 MB, free: 1.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003427/0.1897, allocations: 0.7144 MB / 370.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1911, allocations: 327.5 kB / 371 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1776/0.3687, allocations: 2.214 MB / 373.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.372, allocations: 1.737 MB / 374.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.3743, allocations: 1.021 MB / 376 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002903/0.3772, allocations: 1.283 MB / 377.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001041/0.3783, allocations: 275.1 kB / 377.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001735/0.38, allocations: 368.6 kB / 377.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001407/0.3814, allocations: 0.7567 MB / 378.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002669/0.3841, allocations: 1.201 MB / 379.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005137/0.3893, allocations: 3.5 MB / 383.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3893, allocations: 9.094 kB / 383.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3893, allocations: 0 / 383.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000139/0.3895, allocations: 0 / 383.3 MB, free: 8.188 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.007037/0.3965, allocations: 2.486 MB / 385.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3966, allocations: 10.09 kB / 385.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009845/0.3976, allocations: 254.4 kB / 386.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.3998, allocations: 1.263 MB / 387.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.3999, allocations: 145.2 kB / 387.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003524/0.4003, allocations: 172.3 kB / 387.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00429/0.4046, allocations: 2.389 MB / 390 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-05/0.4047, allocations: 6.562 kB / 390 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001751/0.4049, allocations: 71.34 kB / 390.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.405, allocations: 91.59 kB / 390.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00337/0.4084, allocations: 1.968 MB / 392.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.4188, allocations: 7.153 MB / 399.3 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.4207, allocations: 1.271 MB / 400.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.4223, allocations: 0.8699 MB / 401.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002547/0.4226, allocations: 119.2 kB / 401.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.4226, allocations: 47.56 kB / 401.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.665e-06/0.4226, allocations: 0 / 401.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01471/0.4373, allocations: 6.113 MB / 407.7 MB, free: 6.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.4374, allocations: 64.41 kB / 407.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/0.4398, allocations: 1.215 MB / 409 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.4399, allocations: 53.27 kB / 409.1 MB, free: 5.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/0.4406, allocations: 0.8717 MB / 409.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.441, allocations: 353.9 kB / 410.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004568/0.4415, allocations: 230.7 kB / 410.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.4417, allocations: 357.9 kB / 410.9 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.4428, allocations: 0.6077 MB / 411.5 MB, free: 3.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.4441, allocations: 0.9223 MB / 412.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.4466, allocations: 1.644 MB / 414 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.4467, allocations: 4 kB / 414 MB, free: 248 kB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003941/0.4506, allocations: 2.222 MB / 416.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.4507, allocations: 8 kB / 416.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.4507, allocations: 15.94 kB / 416.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.4518, allocations: 475.9 kB / 416.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.4529, allocations: 269.9 kB / 417 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007676/0.4606, allocations: 7.02 MB / 424 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.4618, allocations: 79.81 kB / 424.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.462, allocations: 59.36 kB / 424.2 MB, free: 5.754 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001189/0.4632, allocations: 0.5981 MB / 424.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003857/0.4636, allocations: 130.4 kB / 424.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003824/0.4674, allocations: 2.036 MB / 426.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4674, allocations: 12 kB / 426.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.4674, allocations: 4 kB / 426.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.4675, allocations: 7.969 kB / 427 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/0.4752, allocations: 4.227 MB / 431.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.4753, allocations: 4 kB / 431.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.476, allocations: 176.6 kB / 431.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001391/0.4774, allocations: 0.5264 MB / 431.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.332e-05/0.4776, allocations: 31.98 kB / 431.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008586/0.4861, allocations: 8.63 MB / 440.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.4862, allocations: 7.938 kB / 440.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004809/0.491, allocations: 2.939 MB / 443.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007329/0.4917, allocations: 347.3 kB / 443.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.492, allocations: 35.97 kB / 443.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008219/0.4928, allocations: 71.86 kB / 443.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.493, allocations: 88.81 kB / 444 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.847e-05/0.4931, allocations: 32 kB / 444.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.4944, allocations: 0.8423 MB / 444.9 MB, free: 276 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4945, allocations: 0 / 444.9 MB, free: 276 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001544/0.496, allocations: 411.9 kB / 445.3 MB, free: 15.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,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 (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003799/0.4964, allocations: 193.9 kB / 445.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004415/0.5008, allocations: 2.498 MB / 448 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5008, allocations: 0 / 448 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.5031, allocations: 1.475 MB / 449.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.505, allocations: 387.8 kB / 449.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007629/0.5126, allocations: 3.958 MB / 453.8 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/0.5147, allocations: 1.63 MB / 455.4 MB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.5158, allocations: 295.8 kB / 455.7 MB, free: 5.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.5162, allocations: 99.42 kB / 455.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5162, allocations: 0 / 455.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of Templates: time 0.04459/0.5608, allocations: 22.35 MB / 478.2 MB, free: 15 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches