Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001108/0.001108, allocations: 191 kB / 18 MB, free: 4.977 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 51.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3284, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.01047/0.3389, allocations: 8.833 MB / 409.6 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005035/0.344, allocations: 2.833 MB / 412.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000882/0.3449, allocations: 47.81 kB / 412.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.3465, allocations: 0.6329 MB / 413.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001842/0.3483, allocations: 0.7301 MB / 413.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006906/0.349, allocations: 327.5 kB / 414.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.3513, allocations: 2.222 MB / 416.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001925/0.3533, allocations: 1.738 MB / 418.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.3545, allocations: 1.02 MB / 419.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.3561, allocations: 1.281 MB / 420.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003453/0.3564, allocations: 271.9 kB / 420.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006493/0.3571, allocations: 359.8 kB / 421 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006986/0.3578, allocations: 0.7675 MB / 421.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.359, allocations: 1.202 MB / 423 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003184/0.3622, allocations: 3.524 MB / 426.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3622, allocations: 0 / 426.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3622, allocations: 4 kB / 426.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.993e-05/0.3623, allocations: 0 / 426.5 MB, free: 14.96 MB / 350.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.004456/0.3667, allocations: 2.47 MB / 429 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3668, allocations: 19.97 kB / 429 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006014/0.3674, allocations: 250.2 kB / 429.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.3694, allocations: 1.309 MB / 430.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.3695, allocations: 131.9 kB / 430.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002528/0.3697, allocations: 192 kB / 430.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003522/0.3733, allocations: 2.371 MB / 433.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.134e-05/0.3733, allocations: 7.984 kB / 433.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/0.3735, allocations: 72 kB / 433.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.3736, allocations: 87.52 kB / 433.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003234/0.3769, allocations: 1.969 MB / 435.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.387, allocations: 7.062 MB / 442.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.3888, allocations: 1.281 MB / 443.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.3903, allocations: 0.8581 MB / 444.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002248/0.3905, allocations: 118.1 kB / 444.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.3906, allocations: 47.55 kB / 444.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=87): time 2.996e-06/0.3906, allocations: 0 / 444.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=104): time 0.01282/0.4034, allocations: 6.097 MB / 450.8 MB, free: 6.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.4035, allocations: 64.34 kB / 450.9 MB, free: 5.973 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.4052, allocations: 1.218 MB / 452.1 MB, free: 4.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.527e-05/0.4053, allocations: 45.64 kB / 452.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005957/0.4059, allocations: 0.869 MB / 453 MB, free: 3.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.4062, allocations: 358.8 kB / 453.4 MB, free: 3.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003522/0.4066, allocations: 222.8 kB / 453.6 MB, free: 3.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4067, allocations: 357.9 kB / 453.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009642/0.4077, allocations: 0.6116 MB / 454.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.4089, allocations: 0.9266 MB / 455.5 MB, free: 1.211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/0.4111, allocations: 1.639 MB / 457.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.4111, allocations: 0 / 457.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003618/0.4147, allocations: 2.223 MB / 459.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4148, allocations: 11.94 kB / 459.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.4148, allocations: 16.23 kB / 459.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.4159, allocations: 475.9 kB / 459.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009513/0.4168, allocations: 267.6 kB / 460.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.4234, allocations: 7.009 MB / 467.1 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.4244, allocations: 87.81 kB / 467.2 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.161e-05/0.4245, allocations: 48 kB / 467.2 MB, free: 4.855 MB / 382.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.0009651/0.4255, allocations: 0.595 MB / 467.8 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.4257, allocations: 134.4 kB / 468 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003305/0.4291, allocations: 2.027 MB / 470 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.4291, allocations: 12 kB / 470 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4291, allocations: 4 kB / 470 MB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.4291, allocations: 3.984 kB / 470 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006499/0.4356, allocations: 4.215 MB / 474.2 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.4356, allocations: 7.984 kB / 474.2 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.4364, allocations: 176.2 kB / 474.4 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.4377, allocations: 0.527 MB / 474.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.94e-05/0.4378, allocations: 31.98 kB / 475 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007705/0.4455, allocations: 8.63 MB / 483.6 MB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.4455, allocations: 4 kB / 483.6 MB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004462/0.45, allocations: 2.941 MB / 486.5 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000694/0.4507, allocations: 343.4 kB / 486.9 MB, free: 336 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.4509, allocations: 31.98 kB / 486.9 MB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007069/0.4516, allocations: 75.86 kB / 487 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.4518, allocations: 84.83 kB / 487.1 MB, free: 144 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.8e-05/0.4519, allocations: 31.98 kB / 487.1 MB, free: 112 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001263/0.4532, allocations: 0.8459 MB / 487.9 MB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4532, allocations: 0 / 487.9 MB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001514/0.4547, allocations: 416 kB / 488.4 MB, free: 14.85 MB / 414.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.0003798/0.4551, allocations: 198.9 kB / 488.5 MB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003353/0.4584, allocations: 2.162 MB / 490.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4585, allocations: 4.125 kB / 490.7 MB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002173/0.4606, allocations: 1.471 MB / 492.2 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.4622, allocations: 380 kB / 492.6 MB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005971/0.4681, allocations: 3.912 MB / 496.5 MB, free: 6.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4694, allocations: 1.634 MB / 498.1 MB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008106/0.4702, allocations: 299.8 kB / 498.4 MB, free: 4.535 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.4705, allocations: 95.42 kB / 498.5 MB, free: 4.441 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4705, allocations: 0 / 498.5 MB, free: 4.441 MB / 414.1 MB Notification: Performance of Templates: time 0.03731/0.5078, allocations: 22.63 MB / 0.5089 GB, free: 14.03 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches