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.001264/0.001264, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001256/0.001257, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.102/2.102, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 45.89 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1643, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.03074/0.1951, allocations: 12.8 MB / 363 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.2105, allocations: 4.267 MB / 367.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003325/0.2139, allocations: 79.69 kB / 367.3 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005455/0.2194, allocations: 0.9668 MB / 368.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007437/0.2269, allocations: 1.274 MB / 369.6 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003979/0.2309, allocations: 0.8404 MB / 370.4 MB, free: 16 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3122/0.5431, allocations: 3.85 MB / 374.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008809/0.552, allocations: 3.227 MB / 377.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.5579, allocations: 1.83 MB / 379.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006509/0.5645, allocations: 2.051 MB / 381.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002671/0.5672, allocations: 0.4987 MB / 381.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.5716, allocations: 0.7092 MB / 382.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002775/0.5744, allocations: 1.106 MB / 383.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006924/0.5814, allocations: 2.075 MB / 385.8 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.5953, allocations: 6.55 MB / 392.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.354e-05/0.5954, allocations: 5.359 kB / 392.3 MB, free: 4.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5954, allocations: 0 / 392.3 MB, free: 4.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003045/0.5957, allocations: 0 / 392.3 MB, free: 4.52 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.02623/0.622, allocations: 4.307 MB / 396.6 MB, free: 1.641 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.6221, allocations: 13.45 kB / 396.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002122/0.6242, allocations: 445.7 kB / 397.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.6346, allocations: 0.8127 MB / 397.9 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009274/0.6439, allocations: 2.315 MB / 400.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004092/0.6444, allocations: 231.9 kB / 400.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001605/0.646, allocations: 319.9 kB / 400.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01489/0.6609, allocations: 4.228 MB / 405 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/0.6611, allocations: 0 / 405 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001299/0.6625, allocations: 131.1 kB / 405.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003261/0.6628, allocations: 150.3 kB / 405.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01364/0.6765, allocations: 3.611 MB / 408.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/0.7251, allocations: 13.17 MB / 422 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/0.7385, allocations: 6.9 MB / 428.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004768/0.7433, allocations: 1.371 MB / 430.3 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.7579, allocations: 3.735 MB / 434 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.171e-05/0.758, allocations: 47.56 kB / 434.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 6.542e-06/0.758, allocations: 0 / 434.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.02365/0.7817, allocations: 5.387 MB / 439.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.7818, allocations: 64.41 kB / 439.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005809/0.7877, allocations: 1.697 MB / 441.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002842/0.788, allocations: 49.7 kB / 441.3 MB, free: 5.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002183/0.7902, allocations: 1.401 MB / 442.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009117/0.7911, allocations: 436.3 kB / 443.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/0.7923, allocations: 287.3 kB / 443.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002529/0.7926, allocations: 305.1 kB / 443.7 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.7951, allocations: 0.6403 MB / 444.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003188/0.7983, allocations: 1.112 MB / 445.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004841/0.8031, allocations: 1.878 MB / 447.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.34e-05/0.8032, allocations: 11.88 kB / 447.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00785/0.811, allocations: 2.32 MB / 449.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.988e-05/0.8112, allocations: 12 kB / 449.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.637e-05/0.8112, allocations: 16 kB / 449.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.8126, allocations: 266.8 kB / 449.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/0.815, allocations: 357 kB / 450.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009655/0.8247, allocations: 6.204 MB / 456.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/0.8276, allocations: 71.86 kB / 456.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005024/0.8281, allocations: 68.09 kB / 456.6 MB, free: 5.168 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.004166/0.8323, allocations: 0.9994 MB / 457.6 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009567/0.8333, allocations: 181.8 kB / 457.8 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00823/0.8416, allocations: 2.134 MB / 459.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.901e-05/0.8417, allocations: 16 kB / 459.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.933e-05/0.8417, allocations: 11.98 kB / 459.9 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-05/0.8417, allocations: 3.984 kB / 460 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/0.8592, allocations: 4.832 MB / 464.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.8593, allocations: 0 / 464.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.8609, allocations: 167.8 kB / 464.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/0.8634, allocations: 449 kB / 465.4 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/0.8637, allocations: 39.92 kB / 465.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02013/0.8838, allocations: 11.06 MB / 476.5 MB, free: 452 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.8839, allocations: 0 / 476.5 MB, free: 452 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.8943, allocations: 3.004 MB / 479.5 MB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/0.8965, allocations: 414.7 kB / 479.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009078/0.8974, allocations: 28 kB / 479.9 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/0.8998, allocations: 63.94 kB / 480 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005704/0.9004, allocations: 104.7 kB / 480.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002031/0.9007, allocations: 35.98 kB / 480.1 MB, free: 12.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004328/0.905, allocations: 1.17 MB / 481.3 MB, free: 11.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.905, allocations: 0 / 481.3 MB, free: 11.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005565/0.9106, allocations: 0.543 MB / 481.8 MB, free: 10.99 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.01138/0.9221, allocations: 3.597 MB / 485.4 MB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.009382/0.9315, allocations: 2.417 MB / 487.9 MB, free: 4.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.9316, allocations: 4 kB / 487.9 MB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004603/0.9362, allocations: 1.518 MB / 489.4 MB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005025/0.9413, allocations: 0.5101 MB / 489.9 MB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0641/1.005, allocations: 21.01 MB / 0.4989 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004957/1.01, allocations: 2.285 MB / 0.5011 GB, free: 9.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003036/1.014, allocations: 391.6 kB / 0.5015 GB, free: 9.465 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003068/1.017, allocations: 1.097 MB / 0.5026 GB, free: 8.367 MB / 430.1 MB Notification: Performance of SimCode: time 1.783e-06/1.017, allocations: 0 / 0.5026 GB, free: 8.367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4517/1.468, allocations: 49.12 MB / 0.5506 GB, free: 147.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.87/19.34, allocations: 5.484 kB / 0.5506 GB, free: 147.4 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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