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.001195/0.001195, allocations: 107.8 kB / 17.06 MB, free: 5.992 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.001213/0.001213, allocations: 195.9 kB / 18 MB, free: 5.07 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 48.06 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2801, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01475/0.2949, allocations: 13.62 MB / 413.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009078/0.304, allocations: 4.956 MB / 418.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002309/0.3063, allocations: 83.69 kB / 418.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002828/0.3092, allocations: 1.076 MB / 420 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004165/0.3134, allocations: 1.449 MB / 421.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002373/0.3158, allocations: 0.9765 MB / 422.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004968/0.3207, allocations: 4.304 MB / 426.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003601/0.3244, allocations: 3.344 MB / 430.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.3271, allocations: 2.021 MB / 432.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003005/0.3301, allocations: 2.273 MB / 434.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007074/0.3309, allocations: 0.5352 MB / 434.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001814/0.3327, allocations: 0.9174 MB / 435.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001123/0.3338, allocations: 1.375 MB / 437.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002331/0.3362, allocations: 2.349 MB / 439.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007233/0.3434, allocations: 7.377 MB / 446.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-05/0.3434, allocations: 0 / 446.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3435, allocations: 0 / 446.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00014/0.3436, allocations: 0 / 446.9 MB, free: 9.914 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.01162/0.3552, allocations: 5.101 MB / 452 MB, free: 4.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3553, allocations: 19.83 kB / 452 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008154/0.3561, allocations: 0.5383 MB / 452.6 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004221/0.3604, allocations: 0.8999 MB / 453.5 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004804/0.3652, allocations: 2.793 MB / 456.3 MB, free: 400 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.3654, allocations: 258.7 kB / 456.5 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005439/0.3659, allocations: 348 kB / 456.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00729/0.3732, allocations: 4.576 MB / 461.4 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-05/0.3733, allocations: 4 kB / 461.4 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003036/0.3736, allocations: 147.9 kB / 461.6 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001487/0.3738, allocations: 154.8 kB / 461.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006289/0.3801, allocations: 3.927 MB / 465.7 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02291/0.403, allocations: 14.11 MB / 479.8 MB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007491/0.4105, allocations: 6.982 MB / 486.8 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/0.4136, allocations: 1.72 MB / 488.5 MB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007962/0.4215, allocations: 4.245 MB / 492.7 MB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.4216, allocations: 55.86 kB / 492.8 MB, free: 10.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.717e-06/0.4216, allocations: 4 kB / 492.8 MB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01669/0.4383, allocations: 7.826 MB / 0.4889 GB, free: 2.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.4384, allocations: 73.41 kB / 0.4889 GB, free: 2.594 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004374/0.4428, allocations: 2.624 MB / 0.4915 GB, free: 15.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.443, allocations: 57.7 kB / 0.4916 GB, free: 15.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.4443, allocations: 1.666 MB / 0.4932 GB, free: 14.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006283/0.4449, allocations: 0.6545 MB / 0.4938 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006541/0.4456, allocations: 339.5 kB / 0.4942 GB, free: 13.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.4457, allocations: 301.1 kB / 0.4944 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.4473, allocations: 0.9097 MB / 0.4953 GB, free: 12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.4492, allocations: 1.314 MB / 0.4966 GB, free: 10.53 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003574/0.4528, allocations: 2.355 MB / 0.4989 GB, free: 8.027 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.4528, allocations: 4 kB / 0.4989 GB, free: 8.023 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006174/0.459, allocations: 3.082 MB / 0.5019 GB, free: 4.926 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.459, allocations: 16.19 kB / 0.5019 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/0.4591, allocations: 12 kB / 0.502 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001728/0.4608, allocations: 0.5477 MB / 0.5025 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.4626, allocations: 435.3 kB / 0.5029 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009634/0.4722, allocations: 7.6 MB / 0.5103 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.4741, allocations: 79.94 kB / 0.5104 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.4744, allocations: 79.98 kB / 0.5105 GB, free: 11.88 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.002614/0.477, allocations: 1.161 MB / 0.5116 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008295/0.4779, allocations: 266.4 kB / 0.5119 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/0.4838, allocations: 2.89 MB / 0.5147 GB, free: 7.535 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-05/0.4838, allocations: 20 kB / 0.5147 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.139e-05/0.4839, allocations: 15.92 kB / 0.5147 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.4839, allocations: 7.969 kB / 0.5147 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/0.4959, allocations: 6.353 MB / 0.5209 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.496, allocations: 0 / 0.5209 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.4973, allocations: 283.7 kB / 0.5212 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.4989, allocations: 0.6123 MB / 0.5218 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.4991, allocations: 43.98 kB / 0.5218 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.5105, allocations: 11.45 MB / 0.533 GB, free: 4.098 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.5105, allocations: 3.984 kB / 0.533 GB, free: 4.094 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2403/0.7509, allocations: 4.167 MB / 0.5371 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/0.7528, allocations: 0.5476 MB / 0.5376 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004329/0.7532, allocations: 37.88 kB / 0.5377 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.7545, allocations: 85.22 kB / 0.5378 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.755, allocations: 146.5 kB / 0.5379 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.7552, allocations: 51.88 kB / 0.5379 GB, free: 127.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003266/0.7584, allocations: 1.844 MB / 0.5397 GB, free: 127.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7584, allocations: 0 / 0.5397 GB, free: 127.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002912/0.7614, allocations: 0.6941 MB / 0.5404 GB, free: 127.4 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.007359/0.7687, allocations: 5.082 MB / 0.5454 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004712/0.7735, allocations: 2.842 MB / 0.5482 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.7735, allocations: 0 / 0.5482 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.7761, allocations: 1.941 MB / 0.5501 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/0.7788, allocations: 0.5843 MB / 0.5506 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0358/0.8146, allocations: 26.14 MB / 0.5762 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/0.8165, allocations: 2.632 MB / 0.5787 GB, free: 98.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.818, allocations: 0.4967 MB / 0.5792 GB, free: 97.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/0.8194, allocations: 1.433 MB / 0.5806 GB, free: 96.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8194, allocations: 4 kB / 0.5806 GB, free: 96.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/0.9224, allocations: 64.56 MB / 0.6437 GB, free: 32.33 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.62, allocations: 14.8 kB / 0.6437 GB, free: 32.32 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