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.001444/0.001451, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001405/0.001405, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.114/2.114, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001158, allocations: 50.8 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1277, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02257/0.1503, allocations: 13.62 MB / 363.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01713/0.1675, allocations: 4.965 MB / 368.8 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005861/0.1734, allocations: 83.62 kB / 368.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006864/0.1803, allocations: 1.033 MB / 369.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3895/0.57, allocations: 1.394 MB / 371.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006234/0.5763, allocations: 0.9702 MB / 372.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01379/0.5901, allocations: 4.282 MB / 376.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.6009, allocations: 3.353 MB / 379.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006964/0.6079, allocations: 1.996 MB / 381.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009107/0.6171, allocations: 2.313 MB / 384.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00431/0.6215, allocations: 0.5344 MB / 384.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007033/0.6285, allocations: 0.9301 MB / 385.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003948/0.6325, allocations: 1.33 MB / 387 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009146/0.6417, allocations: 2.348 MB / 389.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02007/0.6619, allocations: 7.3 MB / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.196e-05/0.6619, allocations: 0 / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.662, allocations: 0 / 396.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003274/0.6623, allocations: 0 / 396.6 MB, free: 1.586 MB / 302.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.02922/0.6916, allocations: 4.981 MB / 401.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.409e-05/0.6917, allocations: 15.89 kB / 401.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003117/0.6948, allocations: 0.5303 MB / 402.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0101/0.7049, allocations: 0.8878 MB / 403 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.7168, allocations: 2.708 MB / 405.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005421/0.7174, allocations: 258.6 kB / 406 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002443/0.7199, allocations: 343.8 kB / 406.3 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02293/0.7429, allocations: 4.587 MB / 410.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/0.7432, allocations: 0 / 410.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001834/0.7451, allocations: 140 kB / 411.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003416/0.7455, allocations: 158.8 kB / 411.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.7616, allocations: 3.926 MB / 415.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05558/0.8172, allocations: 14.24 MB / 429.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/0.8329, allocations: 6.976 MB / 436.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00632/0.8393, allocations: 1.691 MB / 438.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/0.8553, allocations: 4.25 MB / 442.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.411e-05/0.8555, allocations: 63.8 kB / 442.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 9.788e-06/0.8555, allocations: 0 / 442.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.03476/0.8903, allocations: 7.768 MB / 450.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.8904, allocations: 73.41 kB / 450.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009076/0.8995, allocations: 2.624 MB / 452.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005014/0.9001, allocations: 57.7 kB / 452.9 MB, free: 9.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002532/0.9027, allocations: 1.634 MB / 454.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001398/0.9041, allocations: 0.6189 MB / 455.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/0.9057, allocations: 335.4 kB / 455.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.9059, allocations: 301.1 kB / 455.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003388/0.9093, allocations: 0.9097 MB / 456.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00387/0.9132, allocations: 1.31 MB / 458 MB, free: 4.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006257/0.9195, allocations: 2.353 MB / 460.3 MB, free: 2.016 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-05/0.9195, allocations: 4 kB / 460.3 MB, free: 2.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.01209/0.9317, allocations: 3.068 MB / 463.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.062e-05/0.9318, allocations: 12 kB / 463.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.826e-05/0.9318, allocations: 8 kB / 463.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/0.9348, allocations: 0.5596 MB / 464 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003605/0.9384, allocations: 439.3 kB / 464.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01913/0.9576, allocations: 7.6 MB / 472 MB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/0.9616, allocations: 83.94 kB / 472.1 MB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00071/0.9623, allocations: 75.98 kB / 472.2 MB, free: 5.891 MB / 382.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.005442/0.9678, allocations: 1.161 MB / 473.3 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001637/0.9695, allocations: 252.9 kB / 473.6 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/0.9812, allocations: 2.884 MB / 476.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-05/0.9813, allocations: 28 kB / 476.5 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.771e-05/0.9814, allocations: 11.98 kB / 476.5 MB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.13e-05/0.9814, allocations: 11.91 kB / 476.5 MB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02408/1.006, allocations: 6.339 MB / 482.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/1.006, allocations: 4 kB / 482.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002588/1.008, allocations: 283.7 kB / 483.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003228/1.011, allocations: 0.6322 MB / 483.8 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002756/1.012, allocations: 39.98 kB / 483.8 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/1.035, allocations: 11.47 MB / 495.3 MB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/1.035, allocations: 3.938 kB / 495.3 MB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01641/1.051, allocations: 4.154 MB / 499.4 MB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003663/1.055, allocations: 0.5331 MB / 500 MB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001611/1.057, allocations: 48 kB / 0.4883 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/1.06, allocations: 79.94 kB / 0.4884 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008241/1.061, allocations: 141.7 kB / 0.4885 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003632/1.062, allocations: 55.92 kB / 0.4886 GB, free: 9.082 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00707/1.069, allocations: 1.842 MB / 0.4904 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.483e-06/1.069, allocations: 0 / 0.4904 GB, free: 7.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006927/1.076, allocations: 0.6946 MB / 0.491 GB, free: 6.535 MB / 414.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.01823/1.094, allocations: 5.068 MB / 0.496 GB, free: 1.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01541/1.109, allocations: 3.436 MB / 0.4993 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/1.11, allocations: 0 / 0.4993 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006271/1.116, allocations: 1.935 MB / 0.5012 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007942/1.124, allocations: 0.5882 MB / 0.5018 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4086/1.532, allocations: 30.15 MB / 0.5312 GB, free: 149.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009508/1.542, allocations: 2.637 MB / 0.5338 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005608/1.548, allocations: 0.5013 MB / 0.5343 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005482/1.553, allocations: 1.429 MB / 0.5357 GB, free: 148.3 MB / 446.1 MB Notification: Performance of SimCode: time 3.637e-06/1.553, allocations: 0 / 0.5357 GB, free: 148.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1778/1.731, allocations: 65.22 MB / 0.5994 GB, free: 98.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/20.53, allocations: 15.88 kB / 0.5994 GB, free: 98.75 MB / 446.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