Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001236, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2599, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01519/0.2752, allocations: 14.27 MB / 423 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009633/0.2849, allocations: 4.675 MB / 427.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.2872, allocations: 83.69 kB / 427.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003301/0.2906, allocations: 1.06 MB / 428.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004403/0.295, allocations: 1.332 MB / 430.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.2975, allocations: 0.9385 MB / 431.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005306/0.3028, allocations: 4.125 MB / 435.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005136/0.308, allocations: 3.229 MB / 438.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003805/0.3118, allocations: 1.916 MB / 440.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003774/0.3156, allocations: 2.219 MB / 442.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001674/0.3173, allocations: 0.5117 MB / 443.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002698/0.32, allocations: 0.7302 MB / 443.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.3219, allocations: 1.126 MB / 445 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004049/0.326, allocations: 2.139 MB / 447.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009682/0.3357, allocations: 6.762 MB / 453.9 MB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.3357, allocations: 4 kB / 453.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3357, allocations: 0 / 453.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002216/0.3359, allocations: 0 / 453.9 MB, free: 4.164 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01439/0.3503, allocations: 4.523 MB / 458.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3504, allocations: 8.031 kB / 458.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001446/0.3519, allocations: 463.7 kB / 458.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005231/0.3571, allocations: 0.8456 MB / 459.7 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006441/0.3636, allocations: 2.464 MB / 462.2 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003143/0.3639, allocations: 254.5 kB / 462.4 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.365, allocations: 320 kB / 462.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01115/0.3762, allocations: 4.263 MB / 467 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/0.3764, allocations: 15.88 kB / 467 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000826/0.3772, allocations: 136 kB / 467.2 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.3774, allocations: 142.4 kB / 467.3 MB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008062/0.3855, allocations: 3.601 MB / 470.9 MB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/0.4108, allocations: 13.83 MB / 484.7 MB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007778/0.4187, allocations: 6.653 MB / 491.4 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002606/0.4213, allocations: 1.406 MB / 492.8 MB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007233/0.4286, allocations: 3.886 MB / 496.7 MB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.4286, allocations: 47.88 kB / 496.7 MB, free: 7.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 5.109e-06/0.4287, allocations: 4 kB / 496.7 MB, free: 7.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.0124/0.4411, allocations: 5.934 MB / 0.4909 GB, free: 1.566 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.4411, allocations: 72.72 kB / 0.491 GB, free: 1.484 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003434/0.4446, allocations: 1.805 MB / 0.4927 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001511/0.4448, allocations: 57.64 kB / 0.4928 GB, free: 15.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.4459, allocations: 1.49 MB / 0.4942 GB, free: 14.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004758/0.4464, allocations: 0.4919 MB / 0.4947 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005583/0.447, allocations: 311.4 kB / 0.495 GB, free: 13.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4471, allocations: 305.1 kB / 0.4953 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.4483, allocations: 0.6793 MB / 0.496 GB, free: 12.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.4499, allocations: 1.201 MB / 0.4971 GB, free: 10.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002827/0.4527, allocations: 2.003 MB / 0.4991 GB, free: 8.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.4527, allocations: 8 kB / 0.4991 GB, free: 8.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00454/0.4573, allocations: 2.552 MB / 0.5016 GB, free: 6.078 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.4573, allocations: 12 kB / 0.5016 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.153e-05/0.4574, allocations: 16 kB / 0.5016 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.4584, allocations: 368.1 kB / 0.502 GB, free: 5.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.4598, allocations: 371.4 kB / 0.5023 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007646/0.4675, allocations: 8.412 MB / 0.5105 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.4691, allocations: 75.92 kB / 0.5106 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002641/0.4694, allocations: 79.98 kB / 0.5107 GB, free: 12.2 MB / 446.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.002067/0.4715, allocations: 1.017 MB / 0.5117 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000523/0.472, allocations: 202.7 kB / 0.5119 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00409/0.4761, allocations: 2.282 MB / 0.5141 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.4761, allocations: 16 kB / 0.5141 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-05/0.4762, allocations: 8 kB / 0.5141 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.4762, allocations: 11.95 kB / 0.5141 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009083/0.4853, allocations: 5.087 MB / 0.5191 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.4853, allocations: 4 kB / 0.5191 GB, free: 3.348 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.4861, allocations: 172 kB / 0.5193 GB, free: 3.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.4876, allocations: 0.528 MB / 0.5198 GB, free: 2.633 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.4877, allocations: 51.92 kB / 0.5198 GB, free: 2.582 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.5001, allocations: 13.24 MB / 0.5328 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5002, allocations: 0 / 0.5328 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005299/0.5055, allocations: 3.231 MB / 0.5359 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.5066, allocations: 435.6 kB / 0.5363 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004725/0.507, allocations: 39.98 kB / 0.5364 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.5082, allocations: 59.95 kB / 0.5364 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/0.5085, allocations: 109.2 kB / 0.5365 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.5086, allocations: 36 kB / 0.5366 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2064/0.715, allocations: 1.234 MB / 0.5378 GB, free: 121.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7151, allocations: 0 / 0.5378 GB, free: 121.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003329/0.7184, allocations: 0.5822 MB / 0.5383 GB, free: 121.7 MB / 462.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.005202/0.7236, allocations: 3.84 MB / 0.5421 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003199/0.7269, allocations: 2.376 MB / 0.5444 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.7269, allocations: 3.969 kB / 0.5444 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.7289, allocations: 1.741 MB / 0.5461 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.7315, allocations: 0.5543 MB / 0.5467 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02588/0.7573, allocations: 20.27 MB / 0.5664 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/0.759, allocations: 2.317 MB / 0.5687 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.7602, allocations: 405.2 kB / 0.5691 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.7614, allocations: 1.136 MB / 0.5702 GB, free: 99.77 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.7614, allocations: 0 / 0.5702 GB, free: 99.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09376/0.8552, allocations: 53.8 MB / 0.6227 GB, free: 46.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/14.13, allocations: 4.047 kB / 0.6227 GB, free: 46.49 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches