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.001517/0.001517, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001766/0.001766, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.383/1.383, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009888/0.0009888, allocations: 47.64 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09065, allocations: 49.44 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.01068/0.1014, allocations: 8.839 MB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.1071, allocations: 2.835 MB / 362.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.1085, allocations: 47.81 kB / 362.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.1104, allocations: 0.5939 MB / 363.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002687/0.1131, allocations: 0.6949 MB / 363.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.1142, allocations: 331.5 kB / 364.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002785/0.117, allocations: 2.21 MB / 366.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002564/0.1196, allocations: 1.742 MB / 368 MB, free: 3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.1213, allocations: 1.012 MB / 369 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002111/0.1234, allocations: 1.284 MB / 370.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005723/0.124, allocations: 268 kB / 370.6 MB, free: 444 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008825/0.1249, allocations: 363.8 kB / 370.9 MB, free: 80 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1669/0.2918, allocations: 0.7487 MB / 371.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.2937, allocations: 1.213 MB / 372.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005239/0.299, allocations: 3.482 MB / 376.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.299, allocations: 0 / 376.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.299, allocations: 0.5625 kB / 376.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000119/0.2992, allocations: 1.406 kB / 376.4 MB, free: 13.09 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.006457/0.3056, allocations: 2.481 MB / 378.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3057, allocations: 9.625 kB / 378.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008056/0.3065, allocations: 249.4 kB / 379.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.3087, allocations: 1.272 MB / 380.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.3088, allocations: 134.3 kB / 380.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003042/0.3091, allocations: 184 kB / 380.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004704/0.3138, allocations: 2.376 MB / 383.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.394e-05/0.3139, allocations: 2.906 kB / 383.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002018/0.3141, allocations: 71.25 kB / 383.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.3143, allocations: 90.89 kB / 383.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003495/0.3178, allocations: 1.966 MB / 385.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.3287, allocations: 7.148 MB / 392.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3306, allocations: 1.276 MB / 393.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.332, allocations: 0.8731 MB / 394.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002222/0.3323, allocations: 120.1 kB / 394.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.3323, allocations: 44.56 kB / 394.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.176e-06/0.3323, allocations: 0 / 394.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=104): time 0.01316/0.3455, allocations: 6.088 MB / 400.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.3456, allocations: 66.19 kB / 400.8 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.3475, allocations: 1.213 MB / 402 MB, free: 15.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.3477, allocations: 45.7 kB / 402.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006813/0.3484, allocations: 0.8604 MB / 402.9 MB, free: 14.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003328/0.3487, allocations: 369.7 kB / 403.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000371/0.3491, allocations: 214.8 kB / 403.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3492, allocations: 357.9 kB / 403.9 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.3503, allocations: 0.6233 MB / 404.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.3515, allocations: 0.9181 MB / 405.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002271/0.3538, allocations: 1.643 MB / 407 MB, free: 10.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3538, allocations: 7.875 kB / 407 MB, free: 10.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003835/0.3576, allocations: 2.226 MB / 409.3 MB, free: 8.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3577, allocations: 8 kB / 409.3 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3577, allocations: 8 kB / 409.3 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.3588, allocations: 483.6 kB / 409.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009668/0.3598, allocations: 270.2 kB / 410 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006842/0.3666, allocations: 7.021 MB / 417 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.3683, allocations: 87.89 kB / 417.1 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3684, allocations: 51.98 kB / 417.2 MB, free: 88 kB / 318.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.001274/0.3697, allocations: 0.5928 MB / 417.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003302/0.37, allocations: 130.4 kB / 417.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.3735, allocations: 2.039 MB / 419.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.3735, allocations: 12 kB / 420 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.3736, allocations: 8 kB / 420 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.3736, allocations: 3.984 kB / 420 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007294/0.3809, allocations: 4.225 MB / 424.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.3809, allocations: 8.094 kB / 424.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007647/0.3817, allocations: 176.3 kB / 424.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/0.3831, allocations: 0.5218 MB / 424.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.088e-05/0.3832, allocations: 35.92 kB / 424.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008425/0.3917, allocations: 8.633 MB / 433.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.3917, allocations: 4 kB / 433.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004978/0.3967, allocations: 2.945 MB / 436.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009484/0.3977, allocations: 343.3 kB / 436.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004707/0.3982, allocations: 27.98 kB / 436.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.3993, allocations: 71.92 kB / 436.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002834/0.3996, allocations: 92.19 kB / 437 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.3997, allocations: 35.98 kB / 437.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001409/0.4011, allocations: 0.8343 MB / 437.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4011, allocations: 0 / 437.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002055/0.4032, allocations: 408 kB / 438.3 MB, free: 10.27 MB / 350.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.000499/0.4037, allocations: 199.5 kB / 438.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004663/0.4084, allocations: 2.499 MB / 441 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.4084, allocations: 7.062 kB / 441 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.4108, allocations: 1.473 MB / 442.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.4134, allocations: 381.7 kB / 442.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007885/0.4213, allocations: 3.994 MB / 446.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.4228, allocations: 1.618 MB / 448.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/0.4233, allocations: 107.4 kB / 448.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4233, allocations: 0 / 448.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Templates: time 0.07621/0.4995, allocations: 67.97 MB / 0.5044 GB, free: 11.89 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/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