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.000927/0.0009273, allocations: 94.56 kB / 17.31 MB, free: 5.656 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: 179.9 kB / 18.21 MB, free: 5.25 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.344/1.344, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002231/0.0002231, allocations: 4 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07387/0.07411, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.007863/0.08201, allocations: 8.285 MB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.08582, allocations: 2.781 MB / 363.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004249/0.08626, allocations: 43.81 kB / 363.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.08734, allocations: 0.5206 MB / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001236/0.08859, allocations: 0.6255 MB / 364.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.08909, allocations: 291.6 kB / 365 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002068/0.09117, allocations: 2.553 MB / 367.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.09272, allocations: 1.437 MB / 369 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007847/0.09352, allocations: 0.774 MB / 369.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.09475, allocations: 1.101 MB / 370.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.09495, allocations: 120 kB / 371 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004192/0.09538, allocations: 223.8 kB / 371.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005186/0.09591, allocations: 0.5801 MB / 371.8 MB, free: 256 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1479/0.2438, allocations: 1.023 MB / 372.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003566/0.2474, allocations: 2.828 MB / 375.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2474, allocations: 1.266 kB / 375.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2474, allocations: 0 / 375.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001181/0.2475, allocations: 2.969 kB / 375.7 MB, free: 12.18 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.005439/0.253, allocations: 2.122 MB / 377.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.253, allocations: 9.625 kB / 377.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.2542, allocations: 247.4 kB / 378 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/0.2567, allocations: 1.27 MB / 379.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2568, allocations: 135.8 kB / 379.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005134/0.2573, allocations: 181.5 kB / 379.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/0.2623, allocations: 2.385 MB / 382 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-05/0.2624, allocations: 8.875 kB / 382 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/0.2626, allocations: 78.53 kB / 382.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.2627, allocations: 89.42 kB / 382.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00362/0.2664, allocations: 1.985 MB / 384.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009366/0.2758, allocations: 7.169 MB / 391.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.2773, allocations: 1.294 MB / 392.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.2788, allocations: 0.8813 MB / 393.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/0.279, allocations: 124.2 kB / 393.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.279, allocations: 43.67 kB / 393.7 MB, free: 4.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.186e-06/0.279, allocations: 3.984 kB / 393.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=104): time 0.01215/0.2912, allocations: 6.191 MB / 399.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.2912, allocations: 65.47 kB / 399.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.2926, allocations: 1.213 MB / 401.2 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.031e-05/0.2927, allocations: 45.02 kB / 401.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004384/0.2931, allocations: 0.867 MB / 402.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.2934, allocations: 362.1 kB / 402.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.2935, allocations: 102.1 kB / 402.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.2937, allocations: 357.4 kB / 402.9 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.2947, allocations: 0.6277 MB / 403.5 MB, free: 14.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.296, allocations: 0.932 MB / 404.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.2984, allocations: 1.656 MB / 406.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2984, allocations: 4 kB / 406.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003754/0.3022, allocations: 2.245 MB / 408.3 MB, free: 9.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3022, allocations: 8 kB / 408.3 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.3023, allocations: 14.94 kB / 408.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3034, allocations: 473.7 kB / 408.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.3044, allocations: 283.3 kB / 409.1 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/0.3105, allocations: 6.432 MB / 415.5 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009423/0.3115, allocations: 91.97 kB / 415.6 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.939e-05/0.3116, allocations: 45.69 kB / 415.7 MB, free: 1.738 MB / 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.0009214/0.3125, allocations: 0.5989 MB / 416.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.3127, allocations: 138.2 kB / 416.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003583/0.3163, allocations: 2.046 MB / 418.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3163, allocations: 8 kB / 418.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3163, allocations: 4 kB / 418.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.3164, allocations: 6.891 kB / 418.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006583/0.323, allocations: 4.25 MB / 422.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.323, allocations: 4.469 kB / 422.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.3238, allocations: 188.2 kB / 422.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.3251, allocations: 0.514 MB / 423.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.822e-05/0.3252, allocations: 39.92 kB / 423.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007168/0.3324, allocations: 7.935 MB / 431.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3324, allocations: 4 kB / 431.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004501/0.3369, allocations: 2.967 MB / 434.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005291/0.3374, allocations: 351.2 kB / 434.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.3376, allocations: 24 kB / 434.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008122/0.3384, allocations: 83.91 kB / 434.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.3386, allocations: 90.45 kB / 434.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.101e-05/0.3387, allocations: 38.61 kB / 434.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.3399, allocations: 0.8304 MB / 435.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3399, allocations: 0 / 435.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001358/0.3412, allocations: 419.9 kB / 436.2 MB, free: 12.55 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.0003187/0.3416, allocations: 182.4 kB / 436.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003195/0.3448, allocations: 2.178 MB / 438.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3448, allocations: 0 / 438.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.3469, allocations: 1.489 MB / 440 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/0.3492, allocations: 360 kB / 440.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005987/0.3552, allocations: 4.92 MB / 445.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.3565, allocations: 1.621 MB / 446.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.3568, allocations: 103.4 kB / 447 MB, free: 1.531 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3568, allocations: 0 / 447 MB, free: 1.531 MB / 350.1 MB Notification: Performance of Templates: time 0.06409/0.4209, allocations: 67.68 MB / 0.5026 GB, free: 13.9 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