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_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 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_Steinmetz,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 114.2 kB / 17.07 MB, free: 5.965 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.001416/0.001416, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 51.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3, 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_Steinmetz): time 0.01669/0.3167, allocations: 13.63 MB / 413.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009904/0.3267, allocations: 4.414 MB / 418.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003038/0.3298, allocations: 79.75 kB / 418.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003708/0.3335, allocations: 1.041 MB / 419.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00512/0.3387, allocations: 1.35 MB / 420.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002766/0.3415, allocations: 0.8923 MB / 421.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006026/0.3475, allocations: 4.086 MB / 425.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005103/0.3527, allocations: 3.221 MB / 429 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003335/0.356, allocations: 1.908 MB / 430.9 MB, free: 10 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003516/0.3596, allocations: 2.086 MB / 433 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001413/0.361, allocations: 0.5117 MB / 433.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.3633, allocations: 0.7107 MB / 434.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001661/0.365, allocations: 1.11 MB / 435.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003714/0.3687, allocations: 2.139 MB / 437.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.3787, allocations: 6.727 MB / 444.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3788, allocations: 0 / 444.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3788, allocations: 0 / 444.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.379, allocations: 0 / 444.2 MB, free: 12.68 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.01413/0.3932, allocations: 4.499 MB / 448.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3932, allocations: 8.031 kB / 448.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.3943, allocations: 463.7 kB / 449.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004533/0.3989, allocations: 0.83 MB / 450 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005133/0.404, allocations: 2.448 MB / 452.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.4043, allocations: 242.8 kB / 452.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/0.4054, allocations: 335.8 kB / 453 MB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008792/0.4142, allocations: 4.263 MB / 457.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.204e-05/0.4143, allocations: 3.953 kB / 457.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003427/0.4147, allocations: 132 kB / 457.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.4148, allocations: 146.4 kB / 457.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006624/0.4215, allocations: 3.613 MB / 461.1 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02327/0.4448, allocations: 13.72 MB / 474.8 MB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006786/0.4516, allocations: 6.573 MB / 481.4 MB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.4541, allocations: 1.39 MB / 482.8 MB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006338/0.4605, allocations: 3.632 MB / 486.4 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.4606, allocations: 47.88 kB / 486.5 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.206e-06/0.4606, allocations: 0 / 486.5 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of matching and sorting (n=137): time 0.01146/0.4721, allocations: 5.923 MB / 492.4 MB, free: 10.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.4721, allocations: 68.7 kB / 492.5 MB, free: 10.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/0.4748, allocations: 1.78 MB / 494.3 MB, free: 8.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/0.475, allocations: 49.7 kB / 494.3 MB, free: 8.785 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.476, allocations: 1.478 MB / 495.8 MB, free: 7.293 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004615/0.4765, allocations: 0.4959 MB / 496.3 MB, free: 6.793 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004617/0.477, allocations: 319.5 kB / 496.6 MB, free: 6.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4771, allocations: 301.1 kB / 496.9 MB, free: 6.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.4782, allocations: 0.6754 MB / 497.6 MB, free: 5.504 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.4795, allocations: 1.201 MB / 498.8 MB, free: 4.078 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.4821, allocations: 2.003 MB / 0.489 GB, free: 1.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.4821, allocations: 11.94 kB / 0.489 GB, free: 1.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00426/0.4864, allocations: 2.548 MB / 0.4915 GB, free: 15.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.4865, allocations: 8 kB / 0.4915 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.4865, allocations: 16 kB / 0.4916 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000956/0.4875, allocations: 364.4 kB / 0.4919 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4888, allocations: 379.4 kB / 0.4923 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007355/0.4961, allocations: 8.411 MB / 0.5005 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.4977, allocations: 71.97 kB / 0.5005 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.4979, allocations: 84.08 kB / 0.5006 GB, free: 5.367 MB / 430.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.001788/0.4997, allocations: 0.997 MB / 0.5016 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004222/0.5001, allocations: 214.6 kB / 0.5018 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00375/0.5039, allocations: 2.29 MB / 0.504 GB, free: 1.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.5039, allocations: 16 kB / 0.5041 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.5039, allocations: 8 kB / 0.5041 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.5039, allocations: 7.969 kB / 0.5041 GB, free: 1.762 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007911/0.5118, allocations: 5.075 MB / 0.509 GB, free: 12.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.5119, allocations: 192 / 0.509 GB, free: 12.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007714/0.5126, allocations: 175.7 kB / 0.5092 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.5141, allocations: 0.5359 MB / 0.5097 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.5142, allocations: 39.98 kB / 0.5098 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01212/0.5263, allocations: 13.22 MB / 0.5227 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.5263, allocations: 3.938 kB / 0.5227 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005175/0.5315, allocations: 3.227 MB / 0.5258 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.5326, allocations: 435.6 kB / 0.5262 GB, free: 9.949 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.5328, allocations: 35.98 kB / 0.5263 GB, free: 9.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008643/0.5337, allocations: 59.95 kB / 0.5263 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.534, allocations: 117.1 kB / 0.5264 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/0.5341, allocations: 39.98 kB / 0.5265 GB, free: 9.703 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001725/0.5358, allocations: 1.219 MB / 0.5277 GB, free: 8.492 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5358, allocations: 0 / 0.5277 GB, free: 8.492 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002226/0.5381, allocations: 0.5781 MB / 0.5282 GB, free: 7.914 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.00523/0.5433, allocations: 3.849 MB / 0.532 GB, free: 3.961 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.547, allocations: 2.369 MB / 0.5343 GB, free: 1.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.547, allocations: 0 / 0.5343 GB, free: 1.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2154/0.7624, allocations: 1.739 MB / 0.536 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/0.7658, allocations: 0.5444 MB / 0.5365 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02823/0.7941, allocations: 20.23 MB / 0.5563 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/0.7958, allocations: 2.302 MB / 0.5585 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.7973, allocations: 404.9 kB / 0.5589 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/0.7985, allocations: 1.128 MB / 0.56 GB, free: 120.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.7986, allocations: 0 / 0.56 GB, free: 120.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08796/0.8865, allocations: 53.43 MB / 0.6122 GB, free: 67.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.83, allocations: 14.38 kB / 0.6122 GB, free: 67.41 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches