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_Transformer.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_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",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.001358/0.001358, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001498/0.001498, allocations: 196.1 kB / 18 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 1.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 47.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3246, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01795/0.3426, allocations: 16.81 MB / 417.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.3548, allocations: 5.684 MB / 422.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004182/0.3591, allocations: 111.6 kB / 422.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004865/0.3639, allocations: 1.382 MB / 424.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007425/0.3715, allocations: 1.845 MB / 426.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.375, allocations: 1.029 MB / 427.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008649/0.3836, allocations: 6.295 MB / 433.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008055/0.3917, allocations: 5.383 MB / 438.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006966/0.3987, allocations: 2.956 MB / 441.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006362/0.4051, allocations: 3.343 MB / 445.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003094/0.4083, allocations: 0.7891 MB / 445.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004382/0.4127, allocations: 1.062 MB / 446.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003283/0.416, allocations: 1.854 MB / 448.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006711/0.4228, allocations: 3.357 MB / 452.2 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.4373, allocations: 10.55 MB / 462.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.4373, allocations: 0 / 462.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.4373, allocations: 0 / 462.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003342/0.4377, allocations: 3.938 kB / 462.7 MB, free: 10.08 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01903/0.4567, allocations: 6.663 MB / 469.4 MB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.4568, allocations: 11.89 kB / 469.4 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002081/0.4589, allocations: 0.6711 MB / 470.1 MB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005808/0.4647, allocations: 1.09 MB / 471.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008533/0.4733, allocations: 3.679 MB / 474.8 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003528/0.4737, allocations: 365.7 kB / 475.2 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001527/0.4752, allocations: 479.9 kB / 475.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01647/0.4917, allocations: 6.873 MB / 482.5 MB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000158/0.4919, allocations: 11.89 kB / 482.5 MB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/0.493, allocations: 200 kB / 482.7 MB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002697/0.4932, allocations: 241.8 kB / 483 MB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.5065, allocations: 5.941 MB / 488.9 MB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0427/0.5492, allocations: 20.7 MB / 0.4977 GB, free: 10.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.5597, allocations: 9.953 MB / 0.5074 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004641/0.5644, allocations: 2.477 MB / 0.5098 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.5773, allocations: 6.491 MB / 0.5161 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/0.5774, allocations: 56.56 kB / 0.5162 GB, free: 6.348 MB / 446.1 MB Notification: Performance of pre-optimization done (n=219): time 5.199e-06/0.5774, allocations: 0 / 0.5162 GB, free: 6.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=226): time 0.01962/0.597, allocations: 9.745 MB / 0.5257 GB, free: 12.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.5971, allocations: 77.41 kB / 0.5258 GB, free: 12.31 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006068/0.6032, allocations: 2.98 MB / 0.5287 GB, free: 9.312 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004674/0.6037, allocations: 69.64 kB / 0.5288 GB, free: 9.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.6055, allocations: 2.221 MB / 0.5309 GB, free: 7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001073/0.6066, allocations: 0.8018 MB / 0.5317 GB, free: 6.191 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008261/0.6074, allocations: 465.2 kB / 0.5322 GB, free: 5.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.6075, allocations: 309.1 kB / 0.5325 GB, free: 5.426 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/0.6096, allocations: 1.293 MB / 0.5337 GB, free: 4.129 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002412/0.612, allocations: 1.916 MB / 0.5356 GB, free: 1.953 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2247/0.8368, allocations: 3.343 MB / 0.5389 GB, free: 126.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.633e-05/0.8368, allocations: 5.406 kB / 0.5389 GB, free: 126.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007481/0.8443, allocations: 4.258 MB / 0.543 GB, free: 124.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.8444, allocations: 15.75 kB / 0.543 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.324e-05/0.8444, allocations: 15.75 kB / 0.543 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/0.8468, allocations: 0.7746 MB / 0.5438 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/0.8491, allocations: 0.5652 MB / 0.5444 GB, free: 124.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008728/0.8579, allocations: 10.86 MB / 0.555 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/0.8604, allocations: 108 kB / 0.5551 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004065/0.8609, allocations: 101.2 kB / 0.5552 GB, free: 116.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002683/0.8636, allocations: 1.62 MB / 0.5567 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007686/0.8643, allocations: 331.2 kB / 0.5571 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/0.8703, allocations: 3.908 MB / 0.5609 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.8703, allocations: 21.31 kB / 0.5609 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-05/0.8704, allocations: 14.75 kB / 0.5609 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.195e-05/0.8704, allocations: 10.12 kB / 0.5609 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/0.8838, allocations: 8.557 MB / 0.5693 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.8839, allocations: 256 / 0.5693 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/0.8854, allocations: 355.5 kB / 0.5696 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003367/0.8888, allocations: 0.9306 MB / 0.5705 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003363/0.8892, allocations: 59.97 kB / 0.5706 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/0.9014, allocations: 15.72 MB / 0.5859 GB, free: 88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.9014, allocations: 4.094 kB / 0.5859 GB, free: 88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00818/0.9096, allocations: 5.706 MB / 0.5915 GB, free: 82.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/0.9117, allocations: 0.7097 MB / 0.5922 GB, free: 81.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008649/0.9126, allocations: 52 kB / 0.5923 GB, free: 81.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.9144, allocations: 107.9 kB / 0.5924 GB, free: 81.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005061/0.9149, allocations: 189.7 kB / 0.5925 GB, free: 81.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.9151, allocations: 63.98 kB / 0.5926 GB, free: 81.19 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.918, allocations: 2.062 MB / 0.5946 GB, free: 79.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.918, allocations: 0 / 0.5946 GB, free: 79.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003729/0.9218, allocations: 0.9415 MB / 0.5955 GB, free: 78.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,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.008061/0.9298, allocations: 6.428 MB / 0.6018 GB, free: 71.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005598/0.9355, allocations: 3.912 MB / 0.6056 GB, free: 67.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.9355, allocations: 4 kB / 0.6056 GB, free: 67.69 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004985/0.9405, allocations: 2.633 MB / 0.6082 GB, free: 64.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007954/0.9485, allocations: 0.9121 MB / 0.6091 GB, free: 64.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08266/1.031, allocations: 33.79 MB / 0.6421 GB, free: 29.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004984/1.036, allocations: 3.426 MB / 0.6454 GB, free: 26.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004002/1.04, allocations: 0.7603 MB / 0.6462 GB, free: 25.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004046/1.044, allocations: 1.839 MB / 0.648 GB, free: 23.41 MB / 462.1 MB Notification: Performance of SimCode: time 1.423e-06/1.044, allocations: 0 / 0.648 GB, free: 23.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1687/1.213, allocations: 85.33 MB / 0.7313 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.13/17.34, allocations: 12.08 kB / 0.7313 GB, free: 2.832 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.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_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches