Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001576/0.001576, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 59.94 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09383/0.09518, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2121/0.3074, allocations: 14.25 MB / 371.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0149/0.3223, allocations: 5.369 MB / 377.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005378/0.3278, allocations: 82.19 kB / 377.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006235/0.3341, allocations: 1.053 MB / 378.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008311/0.3425, allocations: 1.42 MB / 379.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004604/0.3472, allocations: 1.017 MB / 380.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.3587, allocations: 4.341 MB / 385.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01157/0.3703, allocations: 3.354 MB / 388.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009153/0.3796, allocations: 2.01 MB / 390.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006325/0.386, allocations: 2.444 MB / 392.9 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002779/0.3888, allocations: 0.5371 MB / 393.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005152/0.394, allocations: 0.9205 MB / 394.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002915/0.397, allocations: 1.329 MB / 395.7 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005043/0.402, allocations: 2.362 MB / 398.1 MB, free: 392 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00809/0.4102, allocations: 7.346 MB / 405.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.4102, allocations: 0 / 405.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4102, allocations: 0 / 405.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002149/0.4105, allocations: 0 / 405.4 MB, free: 10.95 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.0174/0.4279, allocations: 5.029 MB / 410.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.4279, allocations: 8.031 kB / 410.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001664/0.4296, allocations: 0.5449 MB / 411 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005495/0.4351, allocations: 0.9087 MB / 411.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006178/0.4413, allocations: 2.757 MB / 414.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/0.4416, allocations: 261.5 kB / 414.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009766/0.4426, allocations: 331.9 kB / 415.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008964/0.4516, allocations: 4.59 MB / 419.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.145e-05/0.4517, allocations: 7.906 kB / 419.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003447/0.452, allocations: 134.4 kB / 420 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/0.4522, allocations: 158.8 kB / 420.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007093/0.4593, allocations: 3.927 MB / 424.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0267/0.486, allocations: 14.25 MB / 438.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009935/0.496, allocations: 6.977 MB / 445.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003513/0.4996, allocations: 1.693 MB / 447 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008929/0.5086, allocations: 4.498 MB / 451.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.5087, allocations: 55.88 kB / 451.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 4.849e-06/0.5087, allocations: 0 / 451.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=185): time 0.01871/0.5274, allocations: 7.78 MB / 459.3 MB, free: 3.711 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.5275, allocations: 73.39 kB / 459.4 MB, free: 3.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005507/0.533, allocations: 2.657 MB / 462 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00043/0.5335, allocations: 57.7 kB / 462.1 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.5349, allocations: 1.652 MB / 463.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008076/0.5357, allocations: 0.6253 MB / 464.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008378/0.5366, allocations: 335.3 kB / 464.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5367, allocations: 305.1 kB / 465 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/0.5386, allocations: 0.9058 MB / 465.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001894/0.5405, allocations: 1.31 MB / 467.2 MB, free: 11.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003636/0.5441, allocations: 2.351 MB / 469.6 MB, free: 9.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.5442, allocations: 4 kB / 469.6 MB, free: 9.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006223/0.5504, allocations: 3.083 MB / 472.7 MB, free: 5.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.5505, allocations: 15.94 kB / 472.7 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.5505, allocations: 12 kB / 472.7 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.552, allocations: 0.5594 MB / 473.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.5538, allocations: 423.3 kB / 473.7 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.5641, allocations: 7.6 MB / 481.3 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.5663, allocations: 79.94 kB / 481.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003712/0.5667, allocations: 75.98 kB / 481.4 MB, free: 12.97 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002709/0.5694, allocations: 1.165 MB / 482.6 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008934/0.5703, allocations: 264.9 kB / 482.8 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006543/0.5769, allocations: 2.885 MB / 485.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.708e-05/0.5769, allocations: 27.88 kB / 485.8 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/0.577, allocations: 8 kB / 485.8 MB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/0.577, allocations: 7.969 kB / 485.8 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.5898, allocations: 6.369 MB / 492.1 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.5899, allocations: 3.938 kB / 492.1 MB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.5913, allocations: 279.6 kB / 492.4 MB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/0.5931, allocations: 0.6201 MB / 493 MB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/0.5933, allocations: 51.97 kB / 493.1 MB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01244/0.6057, allocations: 11.46 MB / 0.4927 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6058, allocations: 0 / 0.4927 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00783/0.6136, allocations: 4.156 MB / 0.4968 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.615, allocations: 0.5446 MB / 0.4973 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006539/0.6157, allocations: 36 kB / 0.4973 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/0.6172, allocations: 79.94 kB / 0.4974 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/0.6176, allocations: 149.7 kB / 0.4976 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.6178, allocations: 51.98 kB / 0.4976 GB, free: 152 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003357/0.6212, allocations: 1.867 MB / 0.4994 GB, free: 14.27 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6212, allocations: 0 / 0.4994 GB, free: 14.27 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002975/0.6242, allocations: 0.7031 MB / 0.5001 GB, free: 13.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008696/0.6329, allocations: 5.067 MB / 0.5051 GB, free: 8.574 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007719/0.6406, allocations: 3.438 MB / 0.5084 GB, free: 5.109 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.6407, allocations: 4 kB / 0.5084 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003234/0.6439, allocations: 1.935 MB / 0.5103 GB, free: 3.125 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/0.6472, allocations: 0.6103 MB / 0.5109 GB, free: 2.527 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2405/0.8877, allocations: 30.29 MB / 0.5405 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002945/0.8907, allocations: 2.646 MB / 0.5431 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002461/0.8932, allocations: 0.5093 MB / 0.5436 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0022/0.8954, allocations: 1.444 MB / 0.545 GB, free: 134.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8954, allocations: 0 / 0.545 GB, free: 134.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.113/1.008, allocations: 65.76 MB / 0.6092 GB, free: 80.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/12.11, allocations: 7.781 kB / 0.6092 GB, free: 80.51 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 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_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches