Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001147/0.001147, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001232/0.001232, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.487/1.487, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 52.23 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09758, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01439/0.112, allocations: 12.8 MB / 363 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007508/0.1196, allocations: 4.255 MB / 367.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.1214, allocations: 75.75 kB / 367.3 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.1241, allocations: 0.9707 MB / 368.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.1279, allocations: 1.281 MB / 369.6 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1907/0.3186, allocations: 0.8415 MB / 370.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005972/0.3246, allocations: 3.853 MB / 374.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005743/0.3303, allocations: 3.217 MB / 377.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003838/0.3342, allocations: 1.825 MB / 379.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.3386, allocations: 2.062 MB / 381.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001837/0.3405, allocations: 0.4988 MB / 381.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003583/0.3441, allocations: 0.7079 MB / 382.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002317/0.3464, allocations: 1.105 MB / 383.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005343/0.3518, allocations: 2.069 MB / 385.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008754/0.3605, allocations: 6.558 MB / 392.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3606, allocations: 0 / 392.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3606, allocations: 0 / 392.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002131/0.3608, allocations: 4 kB / 392.3 MB, free: 4.539 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01273/0.3736, allocations: 4.3 MB / 396.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3736, allocations: 11.86 kB / 396.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007891/0.3744, allocations: 454.4 kB / 397.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004399/0.3788, allocations: 0.8096 MB / 397.9 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004373/0.3832, allocations: 2.319 MB / 400.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.3834, allocations: 236.3 kB / 400.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006079/0.384, allocations: 315 kB / 400.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007993/0.392, allocations: 4.229 MB / 405 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.508e-05/0.3921, allocations: 0 / 405 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003099/0.3924, allocations: 130.1 kB / 405.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001487/0.3926, allocations: 146.3 kB / 405.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006328/0.3989, allocations: 3.604 MB / 408.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02323/0.4222, allocations: 13.19 MB / 422 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007329/0.4296, allocations: 6.899 MB / 428.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/0.4321, allocations: 1.362 MB / 430.3 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007519/0.4396, allocations: 3.749 MB / 434 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.4397, allocations: 43.56 kB / 434.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 3.948e-06/0.4398, allocations: 8 kB / 434.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01232/0.4521, allocations: 5.384 MB / 439.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.4522, allocations: 64.41 kB / 439.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00335/0.4555, allocations: 1.697 MB / 441.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.4557, allocations: 53.64 kB / 441.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.4567, allocations: 1.405 MB / 442.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003891/0.4571, allocations: 436 kB / 443.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.4576, allocations: 283.3 kB / 443.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4577, allocations: 301.1 kB / 443.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.4588, allocations: 0.648 MB / 444.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4603, allocations: 1.112 MB / 445.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002663/0.463, allocations: 1.87 MB / 447.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.496e-05/0.463, allocations: 7.938 kB / 447.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004012/0.467, allocations: 2.318 MB / 449.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.709e-05/0.4671, allocations: 12 kB / 449.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-05/0.4671, allocations: 16 kB / 449.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007909/0.4679, allocations: 264.9 kB / 449.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.4692, allocations: 365 kB / 450.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005719/0.475, allocations: 6.201 MB / 456.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.4765, allocations: 67.88 kB / 456.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/0.4768, allocations: 71.98 kB / 456.6 MB, free: 5.164 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002022/0.4788, allocations: 0.9963 MB / 457.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005321/0.4793, allocations: 181.8 kB / 457.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/0.4836, allocations: 2.134 MB / 459.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.4837, allocations: 12 kB / 459.9 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/0.4837, allocations: 8 kB / 459.9 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.4837, allocations: 7.969 kB / 460 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009656/0.4934, allocations: 4.827 MB / 464.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.4934, allocations: 4.172 kB / 464.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007965/0.4942, allocations: 171.8 kB / 465 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001284/0.4955, allocations: 458.6 kB / 465.4 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.4957, allocations: 35.98 kB / 465.4 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.5061, allocations: 11.05 MB / 476.5 MB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.5062, allocations: 0 / 476.5 MB, free: 436 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.5115, allocations: 3.006 MB / 479.5 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.5126, allocations: 406.7 kB / 479.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005543/0.5132, allocations: 32 kB / 479.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.5144, allocations: 67.94 kB / 480 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003053/0.5147, allocations: 100.8 kB / 480.1 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5149, allocations: 35.98 kB / 480.1 MB, free: 12.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.5173, allocations: 1.17 MB / 481.3 MB, free: 11.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5173, allocations: 0 / 481.3 MB, free: 11.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0028/0.5201, allocations: 0.5391 MB / 481.8 MB, free: 10.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005729/0.5258, allocations: 3.605 MB / 485.4 MB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004951/0.5308, allocations: 2.413 MB / 487.8 MB, free: 4.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5308, allocations: 0 / 487.8 MB, free: 4.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002508/0.5334, allocations: 1.522 MB / 489.4 MB, free: 3.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/0.5366, allocations: 0.5151 MB / 489.9 MB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03549/0.5722, allocations: 21.01 MB / 0.4989 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003039/0.5752, allocations: 2.285 MB / 0.5012 GB, free: 9.816 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001537/0.5768, allocations: 387.7 kB / 0.5015 GB, free: 9.434 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/0.5786, allocations: 1.101 MB / 0.5026 GB, free: 8.332 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5786, allocations: 0 / 0.5026 GB, free: 8.332 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2465/0.8251, allocations: 49.11 MB / 0.5506 GB, free: 147.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.14, allocations: 17.06 kB / 0.5506 GB, free: 147.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches