Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001744/0.001744, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2825, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01472/0.2973, allocations: 13.45 MB / 422.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008022/0.3054, allocations: 4.501 MB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.307, allocations: 79.75 kB / 426.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.3094, allocations: 1.032 MB / 427.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.3124, allocations: 1.282 MB / 429.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.3143, allocations: 0.8988 MB / 430 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003959/0.3182, allocations: 3.923 MB / 433.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003445/0.3217, allocations: 3.22 MB / 437.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.3242, allocations: 1.858 MB / 439 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.327, allocations: 2.192 MB / 441.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006104/0.3276, allocations: 0.4961 MB / 441.7 MB, free: 424 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.329, allocations: 0.7224 MB / 442.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009741/0.33, allocations: 1.106 MB / 443.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002352/0.3323, allocations: 2.085 MB / 445.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00679/0.3391, allocations: 6.646 MB / 452.3 MB, free: 5.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3392, allocations: 0 / 452.3 MB, free: 5.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3392, allocations: 0 / 452.3 MB, free: 5.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001024/0.3393, allocations: 0 / 452.3 MB, free: 5.82 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.01009/0.3494, allocations: 4.421 MB / 456.7 MB, free: 1.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3494, allocations: 12.03 kB / 456.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005564/0.35, allocations: 463.1 kB / 457.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004135/0.3541, allocations: 0.8222 MB / 458 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004329/0.3585, allocations: 2.405 MB / 460.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3586, allocations: 242.2 kB / 460.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004622/0.3591, allocations: 311.9 kB / 460.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006902/0.366, allocations: 4.227 MB / 465.1 MB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-05/0.3661, allocations: 7.938 kB / 465.1 MB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002947/0.3664, allocations: 124 kB / 465.3 MB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001558/0.3666, allocations: 154.3 kB / 465.4 MB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006028/0.3726, allocations: 3.601 MB / 469 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0192/0.3918, allocations: 13.13 MB / 482.2 MB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007195/0.3991, allocations: 7.18 MB / 489.3 MB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002868/0.402, allocations: 1.616 MB / 490.9 MB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006857/0.4088, allocations: 4.195 MB / 495.1 MB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.4089, allocations: 47.5 kB / 495.2 MB, free: 9.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=120): time 2.695e-06/0.4089, allocations: 3.938 kB / 495.2 MB, free: 9.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=123): time 0.01071/0.4196, allocations: 5.6 MB / 0.4891 GB, free: 3.418 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.4197, allocations: 68.34 kB / 0.4891 GB, free: 3.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.422, allocations: 1.723 MB / 0.4908 GB, free: 1.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.775e-05/0.4221, allocations: 45.7 kB / 0.4908 GB, free: 1.562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009547/0.423, allocations: 1.458 MB / 0.4923 GB, free: 92 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003331/0.4234, allocations: 456.1 kB / 0.4927 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004122/0.4238, allocations: 283.5 kB / 0.493 GB, free: 15.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4239, allocations: 301.1 kB / 0.4933 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.425, allocations: 0.652 MB / 0.4939 GB, free: 14.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.4263, allocations: 1.125 MB / 0.495 GB, free: 13.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002541/0.4289, allocations: 1.898 MB / 0.4969 GB, free: 10.99 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4289, allocations: 4 kB / 0.4969 GB, free: 10.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003868/0.4328, allocations: 2.422 MB / 0.4992 GB, free: 8.523 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.4328, allocations: 15.98 kB / 0.4992 GB, free: 8.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.4328, allocations: 12 kB / 0.4992 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007887/0.4336, allocations: 307.3 kB / 0.4995 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.4349, allocations: 355.4 kB / 0.4999 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00617/0.4411, allocations: 6.623 MB / 0.5063 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4425, allocations: 83.84 kB / 0.5064 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.4426, allocations: 67.98 kB / 0.5065 GB, free: 0.6484 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 (177): * Single equations (assignments): 173 * 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,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001801/0.4444, allocations: 1.009 MB / 0.5075 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003104/0.4447, allocations: 190.8 kB / 0.5077 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.4484, allocations: 2.221 MB / 0.5098 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4484, allocations: 12 kB / 0.5098 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.4485, allocations: 8 kB / 0.5098 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.4485, allocations: 3.984 kB / 0.5098 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007554/0.456, allocations: 4.952 MB / 0.5147 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.4561, allocations: 7.938 kB / 0.5147 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4568, allocations: 163.8 kB / 0.5148 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.458, allocations: 499.9 kB / 0.5153 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.053e-05/0.4581, allocations: 35.98 kB / 0.5154 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.4686, allocations: 11.47 MB / 0.5266 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4687, allocations: 4.031 kB / 0.5266 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.4734, allocations: 3.109 MB / 0.5296 GB, free: 7.961 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000831/0.4743, allocations: 419.7 kB / 0.53 GB, free: 7.531 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.4745, allocations: 35.98 kB / 0.53 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008086/0.4753, allocations: 63.89 kB / 0.5301 GB, free: 7.434 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.4756, allocations: 96.8 kB / 0.5302 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/0.4757, allocations: 39.98 kB / 0.5302 GB, free: 7.301 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001648/0.4773, allocations: 1.182 MB / 0.5314 GB, free: 6.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4773, allocations: 0 / 0.5314 GB, free: 6.125 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001822/0.4792, allocations: 0.5468 MB / 0.5319 GB, free: 5.578 MB / 462.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 (83): * Single equations (assignments): 78 * 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,8,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.005111/0.4843, allocations: 3.708 MB / 0.5355 GB, free: 1.773 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2064/0.6907, allocations: 2.143 MB / 0.5376 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.6907, allocations: 1.094 kB / 0.5376 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0029/0.6936, allocations: 1.558 MB / 0.5392 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002633/0.6963, allocations: 0.5215 MB / 0.5397 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/0.7203, allocations: 19.29 MB / 0.5585 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.7218, allocations: 2.288 MB / 0.5607 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001199/0.723, allocations: 387.9 kB / 0.5611 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.724, allocations: 1.108 MB / 0.5622 GB, free: 110.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/0.724, allocations: 0 / 0.5622 GB, free: 110.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09871/0.8228, allocations: 50.89 MB / 0.6119 GB, free: 59.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.72, allocations: 9.016 kB / 0.6119 GB, free: 59.79 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches