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_withLosses.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_withLosses,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001412/0.001413, allocations: 114.3 kB / 17.06 MB, free: 5.969 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: 197.3 kB / 18.01 MB, free: 5.047 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 43.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3355, allocations: 49.44 MB / 400.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01716/0.3527, allocations: 13.62 MB / 413.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.3632, allocations: 4.957 MB / 418.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003232/0.3665, allocations: 79.69 kB / 418.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003557/0.37, allocations: 1.025 MB / 420 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005034/0.3751, allocations: 1.406 MB / 421.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002637/0.3778, allocations: 0.9804 MB / 422.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006886/0.3847, allocations: 4.3 MB / 426.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004532/0.3893, allocations: 3.34 MB / 430 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003432/0.3927, allocations: 2.005 MB / 432 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004495/0.3972, allocations: 2.273 MB / 434.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001728/0.399, allocations: 0.5352 MB / 434.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002888/0.4019, allocations: 0.9213 MB / 435.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001845/0.4038, allocations: 1.371 MB / 437.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003453/0.4072, allocations: 2.345 MB / 439.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.4175, allocations: 7.389 MB / 446.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.4176, allocations: 0 / 446.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4176, allocations: 0 / 446.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002128/0.4178, allocations: 0 / 446.8 MB, free: 10.17 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.0144/0.4322, allocations: 5.097 MB / 451.9 MB, free: 4.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.4323, allocations: 11.89 kB / 451.9 MB, free: 4.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009792/0.4332, allocations: 0.5422 MB / 452.5 MB, free: 4.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004424/0.4377, allocations: 0.8999 MB / 453.4 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005521/0.4432, allocations: 2.793 MB / 456.2 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.4435, allocations: 258.8 kB / 456.4 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000736/0.4442, allocations: 339.9 kB / 456.8 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008935/0.4532, allocations: 4.584 MB / 461.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.518e-05/0.4533, allocations: 4 kB / 461.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003202/0.4536, allocations: 139.9 kB / 461.5 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/0.4538, allocations: 158.8 kB / 461.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007472/0.4613, allocations: 3.931 MB / 465.6 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02665/0.488, allocations: 14.11 MB / 479.7 MB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008415/0.4964, allocations: 6.994 MB / 486.7 MB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003506/0.5, allocations: 1.712 MB / 488.4 MB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009506/0.5095, allocations: 4.241 MB / 492.6 MB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.713e-05/0.5097, allocations: 51.86 kB / 492.7 MB, free: 10.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 5.06e-06/0.5097, allocations: 4 kB / 492.7 MB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01872/0.5284, allocations: 7.83 MB / 0.4888 GB, free: 2.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.5285, allocations: 69.41 kB / 0.4888 GB, free: 2.859 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004191/0.5327, allocations: 2.628 MB / 0.4914 GB, free: 212 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002648/0.533, allocations: 53.7 kB / 0.4915 GB, free: 152 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.5345, allocations: 1.674 MB / 0.4931 GB, free: 14.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006757/0.5352, allocations: 0.6545 MB / 0.4937 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005606/0.5357, allocations: 335.5 kB / 0.4941 GB, free: 13.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5359, allocations: 301.1 kB / 0.4943 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.5375, allocations: 0.9135 MB / 0.4952 GB, free: 12.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00197/0.5395, allocations: 1.31 MB / 0.4965 GB, free: 10.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003829/0.5433, allocations: 2.352 MB / 0.4988 GB, free: 8.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.5434, allocations: 4 kB / 0.4988 GB, free: 8.289 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005927/0.5493, allocations: 3.082 MB / 0.5018 GB, free: 5.191 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.5493, allocations: 14.84 kB / 0.5018 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.5494, allocations: 16 kB / 0.5019 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.5509, allocations: 0.5438 MB / 0.5024 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.5527, allocations: 439.3 kB / 0.5028 GB, free: 4.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.5632, allocations: 7.592 MB / 0.5102 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/0.5652, allocations: 83.94 kB / 0.5103 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002002/0.5654, allocations: 76.06 kB / 0.5104 GB, free: 12.16 MB / 446.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.002359/0.5677, allocations: 1.165 MB / 0.5115 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005703/0.5683, allocations: 274.3 kB / 0.5118 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005525/0.5739, allocations: 2.889 MB / 0.5146 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.678e-05/0.5739, allocations: 27.92 kB / 0.5146 GB, free: 7.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.5739, allocations: 8 kB / 0.5146 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.574, allocations: 7.969 kB / 0.5146 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.585, allocations: 6.349 MB / 0.5208 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.585, allocations: 7.938 kB / 0.5208 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.5863, allocations: 279.7 kB / 0.5211 GB, free: 1.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001654/0.588, allocations: 0.6161 MB / 0.5217 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.5882, allocations: 47.97 kB / 0.5218 GB, free: 364 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/0.6011, allocations: 11.45 MB / 0.5329 GB, free: 4.359 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.6012, allocations: 4.031 kB / 0.5329 GB, free: 4.355 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008125/0.6093, allocations: 4.177 MB / 0.537 GB, free: 136 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2266/0.8359, allocations: 0.542 MB / 0.5375 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004241/0.8364, allocations: 39.56 kB / 0.5376 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.8376, allocations: 82.39 kB / 0.5377 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004854/0.8381, allocations: 139.6 kB / 0.5378 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001574/0.8383, allocations: 52.8 kB / 0.5378 GB, free: 128.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003302/0.8416, allocations: 1.845 MB / 0.5396 GB, free: 128.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8416, allocations: 0 / 0.5396 GB, free: 128.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002399/0.844, allocations: 0.6981 MB / 0.5403 GB, free: 128.7 MB / 462.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.007578/0.8516, allocations: 5.07 MB / 0.5453 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004705/0.8563, allocations: 2.842 MB / 0.5481 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.8564, allocations: 3.656 kB / 0.5481 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002605/0.859, allocations: 1.936 MB / 0.5499 GB, free: 124.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002749/0.8617, allocations: 0.5891 MB / 0.5505 GB, free: 124.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/0.8969, allocations: 26.14 MB / 0.5761 GB, free: 101.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.899, allocations: 2.644 MB / 0.5786 GB, free: 98.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001532/0.9005, allocations: 0.4928 MB / 0.5791 GB, free: 98.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/0.9019, allocations: 1.433 MB / 0.5805 GB, free: 96.81 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.9019, allocations: 0 / 0.5805 GB, free: 96.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/1.007, allocations: 64.56 MB / 0.6436 GB, free: 32.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.59/16.6, allocations: 15.97 kB / 0.6436 GB, free: 32.79 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches