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.001351/0.001351, allocations: 109 kB / 17.06 MB, free: 6.016 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.001468/0.001468, allocations: 192 kB / 18 MB, free: 5.102 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.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 43.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2928, allocations: 49.44 MB / 400.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.0156/0.3084, allocations: 12.81 MB / 413.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009419/0.3179, allocations: 4.248 MB / 417.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002467/0.3204, allocations: 75.69 kB / 417.4 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.3232, allocations: 0.9746 MB / 418.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004362/0.3277, allocations: 1.281 MB / 419.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002158/0.3298, allocations: 0.8472 MB / 420.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005838/0.3357, allocations: 3.873 MB / 424.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004422/0.3402, allocations: 3.224 MB / 427.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003283/0.3435, allocations: 1.83 MB / 429.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003795/0.3473, allocations: 2.063 MB / 431.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.3486, allocations: 0.5 MB / 432 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.3508, allocations: 0.7029 MB / 432.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.3522, allocations: 1.103 MB / 433.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003278/0.3555, allocations: 2.073 MB / 435.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008877/0.3644, allocations: 6.611 MB / 442.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3644, allocations: 0 / 442.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3644, allocations: 4 kB / 442.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001663/0.3646, allocations: 0 / 442.5 MB, free: 14.52 MB / 366.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.01221/0.3768, allocations: 4.397 MB / 446.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.3769, allocations: 11.89 kB / 446.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007189/0.3776, allocations: 443.2 kB / 447.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004273/0.3819, allocations: 0.8339 MB / 448.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004877/0.3868, allocations: 2.397 MB / 450.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.387, allocations: 234.2 kB / 450.8 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006008/0.3876, allocations: 315.9 kB / 451.1 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008143/0.3958, allocations: 4.223 MB / 455.3 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-05/0.3959, allocations: 0 / 455.3 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.3962, allocations: 128 kB / 455.4 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.3964, allocations: 154.3 kB / 455.6 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006976/0.4034, allocations: 3.605 MB / 459.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/0.4265, allocations: 13.04 MB / 472.2 MB, free: 232 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00802/0.4345, allocations: 6.9 MB / 479.1 MB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002516/0.4371, allocations: 1.352 MB / 480.5 MB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006956/0.4441, allocations: 3.731 MB / 484.2 MB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.4442, allocations: 43.56 kB / 484.3 MB, free: 3.199 MB / 398.1 MB Notification: Performance of pre-optimization done (n=120): time 3.326e-06/0.4442, allocations: 4 kB / 484.3 MB, free: 3.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01165/0.4558, allocations: 5.424 MB / 489.7 MB, free: 13.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.4559, allocations: 68.41 kB / 489.7 MB, free: 13.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002725/0.4587, allocations: 1.701 MB / 491.4 MB, free: 11.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.4588, allocations: 49.7 kB / 491.5 MB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.46, allocations: 1.442 MB / 492.9 MB, free: 10.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004217/0.4604, allocations: 448.2 kB / 493.4 MB, free: 9.836 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004599/0.4609, allocations: 287.4 kB / 493.7 MB, free: 9.551 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.461, allocations: 305.1 kB / 494 MB, free: 9.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.4622, allocations: 0.6481 MB / 494.6 MB, free: 8.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.4637, allocations: 1.113 MB / 495.7 MB, free: 7.289 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.4664, allocations: 1.871 MB / 497.6 MB, free: 5.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.4665, allocations: 8 kB / 497.6 MB, free: 5.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004115/0.4706, allocations: 2.324 MB / 499.9 MB, free: 2.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.4706, allocations: 12 kB / 499.9 MB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.4707, allocations: 15.94 kB / 499.9 MB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000751/0.4714, allocations: 279.5 kB / 0.4885 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.4727, allocations: 351.4 kB / 0.4888 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/0.479, allocations: 6.202 MB / 0.4949 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.4807, allocations: 75.91 kB / 0.495 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002203/0.4809, allocations: 64 kB / 0.495 GB, free: 11.43 MB / 430.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.002394/0.4833, allocations: 0.997 MB / 0.496 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004835/0.4838, allocations: 190.8 kB / 0.4962 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/0.488, allocations: 2.139 MB / 0.4983 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.488, allocations: 12 kB / 0.4983 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.488, allocations: 8 kB / 0.4983 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.488, allocations: 7.969 kB / 0.4983 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008702/0.4967, allocations: 4.826 MB / 0.503 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.4968, allocations: 0 / 0.503 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007625/0.4976, allocations: 171.8 kB / 0.5032 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.4988, allocations: 452 kB / 0.5036 GB, free: 2.414 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.683e-05/0.499, allocations: 31.98 kB / 0.5036 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/0.5116, allocations: 11.05 MB / 0.5144 GB, free: 6.645 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/0.5116, allocations: 11.97 kB / 0.5144 GB, free: 6.633 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005524/0.5171, allocations: 3.006 MB / 0.5174 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.5182, allocations: 415.8 kB / 0.5178 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.5184, allocations: 32 kB / 0.5178 GB, free: 3.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008413/0.5193, allocations: 63.94 kB / 0.5179 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002949/0.5196, allocations: 100.8 kB / 0.5179 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.443e-05/0.5197, allocations: 39.98 kB / 0.518 GB, free: 2.887 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001995/0.5217, allocations: 1.174 MB / 0.5191 GB, free: 1.719 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5217, allocations: 0 / 0.5191 GB, free: 1.719 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001998/0.5237, allocations: 0.5352 MB / 0.5197 GB, free: 1.184 MB / 446.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.005867/0.5295, allocations: 3.618 MB / 0.5232 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003777/0.5334, allocations: 2.085 MB / 0.5252 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5334, allocations: 4.062 kB / 0.5252 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.536, allocations: 1.537 MB / 0.5267 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.5385, allocations: 0.5043 MB / 0.5272 GB, free: 9.219 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2423/0.7809, allocations: 19.08 MB / 0.5459 GB, free: 127 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.7824, allocations: 2.277 MB / 0.5481 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001076/0.7835, allocations: 386.5 kB / 0.5484 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.7846, allocations: 1.099 MB / 0.5495 GB, free: 125 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7846, allocations: 0 / 0.5495 GB, free: 125 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09078/0.8754, allocations: 50.32 MB / 0.5987 GB, free: 77.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.31, allocations: 10.88 kB / 0.5987 GB, free: 77.62 MB / 462.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