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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001911/0.001911, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.512/1.512, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 55.17 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1036, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009827/0.1135, allocations: 8.824 MB / 359 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005009/0.1186, allocations: 2.835 MB / 361.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.12, allocations: 43.81 kB / 361.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.1219, allocations: 0.5939 MB / 362.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002145/0.124, allocations: 0.7027 MB / 363.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008482/0.1249, allocations: 327.5 kB / 363.5 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002768/0.1277, allocations: 2.222 MB / 365.7 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002488/0.1302, allocations: 1.742 MB / 367.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001317/0.1315, allocations: 1.005 MB / 368.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/0.1336, allocations: 1.288 MB / 369.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.1344, allocations: 268 kB / 370 MB, free: 364 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.1356, allocations: 355.8 kB / 370.4 MB, free: 8 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1738/0.3094, allocations: 0.7553 MB / 371.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.3113, allocations: 1.208 MB / 372.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004297/0.3156, allocations: 3.49 MB / 375.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3156, allocations: 0 / 375.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3156, allocations: 0 / 375.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.912e-05/0.3157, allocations: 1.25 kB / 375.8 MB, free: 13.15 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.005237/0.3209, allocations: 2.479 MB / 378.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.321, allocations: 12.44 kB / 378.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003679/0.3214, allocations: 269.4 kB / 378.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007637/0.3221, allocations: 245.1 kB / 378.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.324, allocations: 1.264 MB / 380.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.609e-05/0.3241, allocations: 131.9 kB / 380.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.3244, allocations: 186.2 kB / 380.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003728/0.3281, allocations: 2.376 MB / 382.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/0.3282, allocations: 5.062 kB / 382.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001708/0.3284, allocations: 74.34 kB / 382.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.732e-05/0.3285, allocations: 91.03 kB / 382.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003049/0.3315, allocations: 1.968 MB / 384.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009828/0.3414, allocations: 7.157 MB / 392.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.343, allocations: 1.272 MB / 393.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.3447, allocations: 0.87 MB / 394.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002639/0.345, allocations: 122.1 kB / 394.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.345, allocations: 44.56 kB / 394.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 4.198e-06/0.345, allocations: 5.375 kB / 394.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=104): time 0.0124/0.3574, allocations: 6.084 MB / 400.4 MB, free: 456 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.3575, allocations: 61.78 kB / 400.5 MB, free: 392 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.3591, allocations: 1.215 MB / 401.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.766e-05/0.3592, allocations: 45.7 kB / 401.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.3598, allocations: 0.868 MB / 402.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.3601, allocations: 368.4 kB / 403 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003573/0.3605, allocations: 218.8 kB / 403.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3606, allocations: 357.9 kB / 403.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009539/0.3616, allocations: 0.6155 MB / 404.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.3627, allocations: 0.9241 MB / 405.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002181/0.3649, allocations: 1.644 MB / 406.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3649, allocations: 5.25 kB / 406.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003507/0.3684, allocations: 2.225 MB / 409 MB, free: 8.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3685, allocations: 11.98 kB / 409 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.3685, allocations: 8 kB / 409 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.3695, allocations: 482.9 kB / 409.5 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009601/0.3705, allocations: 267 kB / 409.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006284/0.3768, allocations: 7.022 MB / 416.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3781, allocations: 87.81 kB / 416.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.732e-05/0.3782, allocations: 44 kB / 416.9 MB, free: 15.82 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.001408/0.3797, allocations: 0.5999 MB / 417.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.38, allocations: 134.4 kB / 417.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003373/0.3833, allocations: 2.029 MB / 419.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3834, allocations: 15.98 kB / 419.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3834, allocations: 6.719 kB / 419.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3834, allocations: 7.969 kB / 419.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006735/0.3901, allocations: 4.227 MB / 423.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-06/0.3902, allocations: 4 kB / 423.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.3909, allocations: 176.6 kB / 424.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.3922, allocations: 0.5303 MB / 424.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.137e-05/0.3923, allocations: 31.98 kB / 424.6 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007767/0.4001, allocations: 8.622 MB / 433.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.4002, allocations: 6.906 kB / 433.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004573/0.4047, allocations: 2.94 MB / 436.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007031/0.4055, allocations: 347.3 kB / 436.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.4057, allocations: 31.98 kB / 436.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007831/0.4065, allocations: 76.42 kB / 436.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.4067, allocations: 83.7 kB / 436.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.09e-05/0.4068, allocations: 35.98 kB / 436.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.408, allocations: 0.8343 MB / 437.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.408, allocations: 0 / 437.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001452/0.4094, allocations: 419.9 kB / 438 MB, free: 9.992 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.004949/0.4144, allocations: 3.584 MB / 441.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004228/0.4186, allocations: 2.499 MB / 444.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4186, allocations: 0 / 444.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/0.421, allocations: 1.472 MB / 445.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001925/0.4229, allocations: 385.6 kB / 445.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0218/0.4447, allocations: 16.22 MB / 462.2 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.4461, allocations: 1.634 MB / 463.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.4472, allocations: 299.8 kB / 464.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/0.4481, allocations: 0.6906 MB / 464.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4482, allocations: 0 / 464.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0699/0.5181, allocations: 36.58 MB / 0.4896 GB, free: 10.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.479/9.997, allocations: 8 kB / 0.4896 GB, free: 10.07 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > 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