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.001736/0.001736, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.002009/0.002009, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.222/2.222, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 47.39 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1737, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.0287/0.2024, allocations: 13.62 MB / 363.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01394/0.2164, allocations: 4.419 MB / 368.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003572/0.2201, allocations: 83.69 kB / 368.3 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004386/0.2245, allocations: 1.002 MB / 369.3 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3364/0.5609, allocations: 1.305 MB / 370.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007025/0.568, allocations: 0.8953 MB / 371.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01581/0.5839, allocations: 4.054 MB / 375.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01063/0.5946, allocations: 3.225 MB / 378.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007083/0.6018, allocations: 1.887 MB / 380.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00683/0.6087, allocations: 2.084 MB / 382.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002588/0.6114, allocations: 0.5083 MB / 383.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004321/0.6157, allocations: 0.7183 MB / 384 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/0.6179, allocations: 1.117 MB / 385.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006941/0.6249, allocations: 2.132 MB / 387.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009407/0.6343, allocations: 6.674 MB / 393.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.6344, allocations: 0 / 393.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.6344, allocations: 0 / 393.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002481/0.6346, allocations: 0 / 393.9 MB, free: 3.203 MB / 302.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.01646/0.6511, allocations: 4.398 MB / 398.3 MB, free: 268 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.715e-05/0.6512, allocations: 17.25 kB / 398.3 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002192/0.6534, allocations: 479.1 kB / 398.8 MB, free: 0 / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008573/0.662, allocations: 0.8247 MB / 399.6 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009657/0.6717, allocations: 2.358 MB / 402 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004786/0.6723, allocations: 243.2 kB / 402.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002022/0.6743, allocations: 331.1 kB / 402.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.6915, allocations: 4.269 MB / 406.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.6917, allocations: 3.906 kB / 406.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007539/0.6924, allocations: 135.9 kB / 406.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/0.6927, allocations: 157.8 kB / 407.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008448/0.7011, allocations: 3.601 MB / 410.7 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03079/0.732, allocations: 13.85 MB / 424.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008121/0.7402, allocations: 6.567 MB / 431.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003081/0.7433, allocations: 1.394 MB / 432.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008848/0.7522, allocations: 3.632 MB / 436.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.7523, allocations: 47.88 kB / 436.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 6.632e-06/0.7523, allocations: 0 / 436.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.0157/0.768, allocations: 5.886 MB / 442.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.7682, allocations: 64.72 kB / 442.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004401/0.7726, allocations: 1.783 MB / 443.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003754/0.773, allocations: 49.7 kB / 444 MB, free: 2.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001371/0.7744, allocations: 1.433 MB / 445.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007024/0.7751, allocations: 479 kB / 445.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007955/0.7759, allocations: 327.2 kB / 446.2 MB, free: 308 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.776, allocations: 301.1 kB / 446.5 MB, free: 4 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.7774, allocations: 0.6792 MB / 447.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.7791, allocations: 1.189 MB / 448.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.7821, allocations: 2.01 MB / 450.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/0.7822, allocations: 4 kB / 450.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004975/0.7872, allocations: 2.539 MB / 452.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.7872, allocations: 18.91 kB / 452.9 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.831e-05/0.7873, allocations: 16 kB / 452.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.7884, allocations: 367.7 kB / 453.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.7899, allocations: 379.4 kB / 453.7 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009413/0.7994, allocations: 8.413 MB / 462.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.8016, allocations: 83.86 kB / 462.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003687/0.802, allocations: 68 kB / 462.2 MB, free: 15.24 MB / 382.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.002555/0.8045, allocations: 1.009 MB / 463.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007138/0.8053, allocations: 185.8 kB / 463.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004861/0.8101, allocations: 2.297 MB / 465.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.8102, allocations: 16 kB / 465.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.797e-05/0.8102, allocations: 8 kB / 465.7 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.8102, allocations: 3.984 kB / 465.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/0.8225, allocations: 5.08 MB / 470.8 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.8225, allocations: 192 / 470.8 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/0.8234, allocations: 175.7 kB / 471 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.8251, allocations: 0.5358 MB / 471.5 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.8253, allocations: 39.98 kB / 471.6 MB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01469/0.84, allocations: 13.23 MB / 484.8 MB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/0.84, allocations: 7.969 kB / 484.8 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006987/0.847, allocations: 3.214 MB / 488 MB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/0.8486, allocations: 422.6 kB / 488.4 MB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008398/0.8494, allocations: 43.92 kB / 488.5 MB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.8511, allocations: 59.95 kB / 488.5 MB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004233/0.8515, allocations: 109.2 kB / 488.6 MB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8516, allocations: 39.98 kB / 488.7 MB, free: 3.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003006/0.8547, allocations: 1.219 MB / 489.9 MB, free: 2.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8547, allocations: 0 / 489.9 MB, free: 2.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004476/0.8592, allocations: 0.5781 MB / 490.5 MB, free: 1.871 MB / 398.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.00791/0.8671, allocations: 3.843 MB / 494.3 MB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005936/0.8731, allocations: 2.693 MB / 497 MB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.639e-06/0.8731, allocations: 0 / 497 MB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.8763, allocations: 1.75 MB / 498.8 MB, free: 9.336 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/0.8809, allocations: 0.5405 MB / 499.3 MB, free: 8.801 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06424/0.9452, allocations: 22.44 MB / 0.5095 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006132/0.9514, allocations: 2.311 MB / 0.5118 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003773/0.9553, allocations: 397 kB / 0.5121 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003565/0.9589, allocations: 1.128 MB / 0.5132 GB, free: 12.73 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/0.9589, allocations: 0 / 0.5132 GB, free: 12.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4847/1.444, allocations: 52.17 MB / 0.5642 GB, free: 133.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/20.1, allocations: 7.812 kB / 0.5642 GB, free: 133.2 MB / 446.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