Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.002303/0.002302, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.002868/0.002868, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.705/3.705, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002348, allocations: 56.39 kB / 280.8 MB, free: 3.055 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1769, allocations: 46.64 MB / 327.4 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.03026/0.2073, allocations: 13.58 MB / 341 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.2227, allocations: 4.439 MB / 345.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004027/0.2269, allocations: 71.69 kB / 345.5 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006352/0.2333, allocations: 0.9783 MB / 346.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008243/0.2416, allocations: 1.301 MB / 347.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005633/0.2473, allocations: 0.9118 MB / 348.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.2586, allocations: 4.094 MB / 352.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009338/0.268, allocations: 3.181 MB / 355.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00519/0.2733, allocations: 1.881 MB / 357.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005318/0.2787, allocations: 2.09 MB / 359.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002208/0.2809, allocations: 0.5078 MB / 360.4 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003438/0.2844, allocations: 0.7185 MB / 361.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002263/0.2867, allocations: 1.11 MB / 362.3 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006384/0.2931, allocations: 2.132 MB / 364.4 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.3073, allocations: 6.656 MB / 371 MB, free: 8.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.3074, allocations: 3.938 kB / 371 MB, free: 8.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3074, allocations: 0 / 371 MB, free: 8.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002619/0.3077, allocations: 0 / 371 MB, free: 8.453 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.02446/0.3322, allocations: 4.406 MB / 375.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.866e-05/0.3323, allocations: 8.031 kB / 375.5 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002097/0.3344, allocations: 455.8 kB / 375.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008381/0.3428, allocations: 0.8241 MB / 376.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008843/0.3517, allocations: 2.256 MB / 379 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005247/0.3523, allocations: 238.8 kB / 379.2 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2455/0.5978, allocations: 330.2 kB / 379.5 MB, free: 49.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.6121, allocations: 4.264 MB / 383.8 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.143e-05/0.6123, allocations: 2.312 kB / 383.8 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003679/0.6127, allocations: 131.8 kB / 383.9 MB, free: 47.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002493/0.6129, allocations: 148.2 kB / 384.1 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.6255, allocations: 3.595 MB / 387.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0398/0.6654, allocations: 13.89 MB / 401.6 MB, free: 37.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0087/0.6741, allocations: 6.563 MB / 408.1 MB, free: 30.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003414/0.6776, allocations: 1.388 MB / 409.5 MB, free: 30.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009854/0.6875, allocations: 3.645 MB / 413.2 MB, free: 26.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.873e-05/0.6876, allocations: 51.88 kB / 413.2 MB, free: 26.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 5.1e-06/0.6877, allocations: 0 / 413.2 MB, free: 26.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.01678/0.7044, allocations: 5.868 MB / 419.1 MB, free: 20.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.7045, allocations: 68.72 kB / 419.2 MB, free: 20.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004514/0.7091, allocations: 1.78 MB / 420.9 MB, free: 18.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.7093, allocations: 49.7 kB / 421 MB, free: 18.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.7106, allocations: 1.442 MB / 422.4 MB, free: 17.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005105/0.7111, allocations: 476.8 kB / 422.9 MB, free: 16.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007729/0.7119, allocations: 316.1 kB / 423.2 MB, free: 16.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.791e-05/0.712, allocations: 305.1 kB / 423.5 MB, free: 16.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.7136, allocations: 0.6754 MB / 424.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.7157, allocations: 1.204 MB / 425.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003661/0.7194, allocations: 1.999 MB / 427.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/0.7194, allocations: 4 kB / 427.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.006039/0.7255, allocations: 2.543 MB / 429.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.7255, allocations: 13.09 kB / 429.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.535e-05/0.7256, allocations: 16 kB / 429.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.7269, allocations: 369.4 kB / 430.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.7291, allocations: 383.3 kB / 430.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009577/0.7387, allocations: 8.412 MB / 439.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/0.7414, allocations: 75.88 kB / 439.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/0.7416, allocations: 71.98 kB / 439.2 MB, free: 15.6 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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 {(1,7,100.0%), (2,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.003065/0.7447, allocations: 1.009 MB / 440.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000643/0.7454, allocations: 193.6 kB / 440.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006777/0.7522, allocations: 2.289 MB / 442.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.812e-05/0.7522, allocations: 12 kB / 442.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.017e-05/0.7523, allocations: 12 kB / 442.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.868e-05/0.7523, allocations: 7.969 kB / 442.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.7678, allocations: 5.077 MB / 447.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/0.7679, allocations: 8 kB / 447.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/0.7691, allocations: 176.7 kB / 448 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/0.7716, allocations: 0.5363 MB / 448.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.7718, allocations: 39.92 kB / 448.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02429/0.7961, allocations: 13.23 MB / 461.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.7962, allocations: 0 / 461.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009202/0.8054, allocations: 3.225 MB / 465 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001805/0.8073, allocations: 430.5 kB / 465.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.8077, allocations: 32 kB / 465.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.8092, allocations: 59.95 kB / 465.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004872/0.8097, allocations: 113.2 kB / 465.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.8098, allocations: 35.98 kB / 465.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003094/0.8129, allocations: 1.223 MB / 466.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.34e-06/0.8129, allocations: 0 / 466.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004464/0.8174, allocations: 0.5845 MB / 467.5 MB, free: 2.246 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * 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,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.008533/0.826, allocations: 3.838 MB / 471.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008476/0.8345, allocations: 2.694 MB / 474 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.8346, allocations: 1.875 kB / 474 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004429/0.839, allocations: 1.743 MB / 475.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004992/0.844, allocations: 0.5492 MB / 476.3 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0642/0.9083, allocations: 22.46 MB / 498.8 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004028/0.9124, allocations: 2.311 MB / 0.4894 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002573/0.915, allocations: 393.1 kB / 0.4897 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002451/0.9175, allocations: 1.128 MB / 0.4908 GB, free: 13.09 MB / 398.1 MB Notification: Performance of SimCode: time 2.584e-06/0.9176, allocations: 0 / 0.4908 GB, free: 13.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.537/1.455, allocations: 52.16 MB / 0.5418 GB, free: 143.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/18.29, allocations: 10.44 kB / 0.5418 GB, free: 143.7 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches