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.001634/0.001633, allocations: 118.2 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.00187/0.001871, allocations: 198 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.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.321, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01688/0.338, allocations: 13.44 MB / 422.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009314/0.3473, allocations: 4.489 MB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002883/0.3502, allocations: 79.69 kB / 426.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003418/0.3537, allocations: 1.044 MB / 427.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004517/0.3583, allocations: 1.286 MB / 429.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002648/0.3609, allocations: 0.8915 MB / 430 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00541/0.3664, allocations: 3.918 MB / 433.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004328/0.3707, allocations: 3.232 MB / 437.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002713/0.3734, allocations: 1.858 MB / 439 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003285/0.3767, allocations: 2.195 MB / 441.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.3778, allocations: 0.5 MB / 441.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.3799, allocations: 0.7146 MB / 442.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009912/0.3809, allocations: 1.102 MB / 443.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002383/0.3833, allocations: 2.081 MB / 445.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00698/0.3903, allocations: 6.658 MB / 452.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3903, allocations: 0 / 452.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3903, allocations: 0 / 452.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001483/0.3905, allocations: 0 / 452.3 MB, free: 5.793 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.0114/0.4019, allocations: 4.425 MB / 456.7 MB, free: 1.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4019, allocations: 8.031 kB / 456.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006485/0.4026, allocations: 447.2 kB / 457.1 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004211/0.4068, allocations: 0.8261 MB / 458 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005406/0.4122, allocations: 2.416 MB / 460.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.4124, allocations: 230.2 kB / 460.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006633/0.4131, allocations: 315.9 kB / 460.9 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008107/0.4212, allocations: 4.219 MB / 465.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-05/0.4213, allocations: 8 kB / 465.1 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002962/0.4216, allocations: 128 kB / 465.3 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/0.4218, allocations: 150.3 kB / 465.4 MB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006086/0.4279, allocations: 3.609 MB / 469 MB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.4485, allocations: 13.14 MB / 482.2 MB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007108/0.4556, allocations: 7.168 MB / 489.3 MB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003083/0.4587, allocations: 1.617 MB / 490.9 MB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007619/0.4664, allocations: 4.214 MB / 495.2 MB, free: 9.242 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.4664, allocations: 43.56 kB / 495.2 MB, free: 9.188 MB / 414.1 MB Notification: Performance of pre-optimization done (n=120): time 4.308e-06/0.4664, allocations: 0 / 495.2 MB, free: 9.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=123): time 0.01156/0.478, allocations: 5.604 MB / 0.4891 GB, free: 3.391 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.4781, allocations: 64.41 kB / 0.4891 GB, free: 3.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003305/0.4814, allocations: 1.719 MB / 0.4908 GB, free: 1.594 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4816, allocations: 49.64 kB / 0.4909 GB, free: 1.539 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.4827, allocations: 1.454 MB / 0.4923 GB, free: 72 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.4831, allocations: 456.1 kB / 0.4927 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005097/0.4836, allocations: 287.5 kB / 0.493 GB, free: 15.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4838, allocations: 305.1 kB / 0.4933 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.485, allocations: 0.6558 MB / 0.4939 GB, free: 14.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.4866, allocations: 1.121 MB / 0.495 GB, free: 13.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002881/0.4894, allocations: 1.898 MB / 0.4969 GB, free: 10.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/0.4895, allocations: 4 kB / 0.4969 GB, free: 10.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004344/0.4938, allocations: 2.418 MB / 0.4992 GB, free: 8.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.4939, allocations: 8 kB / 0.4992 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/0.4939, allocations: 16.28 kB / 0.4992 GB, free: 8.477 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/0.4948, allocations: 319.2 kB / 0.4996 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.4961, allocations: 347.4 kB / 0.4999 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006939/0.503, allocations: 6.627 MB / 0.5064 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.5045, allocations: 79.84 kB / 0.5064 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002432/0.5048, allocations: 68 kB / 0.5065 GB, free: 0.6211 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.002264/0.5071, allocations: 1.009 MB / 0.5075 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005867/0.5077, allocations: 190.8 kB / 0.5077 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004311/0.512, allocations: 2.206 MB / 0.5098 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.512, allocations: 16 kB / 0.5098 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/0.5121, allocations: 4 kB / 0.5098 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.5121, allocations: 7.969 kB / 0.5098 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009994/0.5221, allocations: 4.937 MB / 0.5147 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.5221, allocations: 8.125 kB / 0.5147 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.5229, allocations: 167.8 kB / 0.5148 GB, free: 7.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/0.5243, allocations: 495.8 kB / 0.5153 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.5244, allocations: 35.98 kB / 0.5153 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.5361, allocations: 11.48 MB / 0.5266 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5361, allocations: 4.031 kB / 0.5266 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005376/0.5415, allocations: 3.113 MB / 0.5296 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009806/0.5425, allocations: 419.7 kB / 0.53 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004985/0.5431, allocations: 32 kB / 0.53 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.5442, allocations: 71.88 kB / 0.5301 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.5445, allocations: 96.8 kB / 0.5302 GB, free: 7.324 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5446, allocations: 36 kB / 0.5302 GB, free: 7.289 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002319/0.5469, allocations: 1.186 MB / 0.5314 GB, free: 6.109 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.547, allocations: 0 / 0.5314 GB, free: 6.109 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002516/0.5495, allocations: 0.5468 MB / 0.5319 GB, free: 5.562 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.005829/0.5553, allocations: 3.716 MB / 0.5355 GB, free: 1.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2306/0.786, allocations: 2.136 MB / 0.5376 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.786, allocations: 1.688 kB / 0.5376 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003034/0.7891, allocations: 1.559 MB / 0.5392 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.7916, allocations: 0.5103 MB / 0.5397 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02565/0.8173, allocations: 19.3 MB / 0.5585 GB, free: 114 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.819, allocations: 2.294 MB / 0.5607 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.8202, allocations: 379.9 kB / 0.5611 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.8212, allocations: 1.112 MB / 0.5622 GB, free: 110.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8212, allocations: 0 / 0.5622 GB, free: 110.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1281/0.9494, allocations: 50.88 MB / 0.6119 GB, free: 59.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.25, allocations: 16.44 kB / 0.6119 GB, free: 59.85 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