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.001588/0.001588, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001619/0.001619, allocations: 200 kB / 18.01 MB, free: 5.047 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.399/1.399, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 39.94 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2748, allocations: 49.45 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01762/0.2925, allocations: 13.63 MB / 413.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009725/0.3023, allocations: 4.414 MB / 418.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.3048, allocations: 75.75 kB / 418.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.3079, allocations: 0.9977 MB / 419.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.3124, allocations: 1.312 MB / 420.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002211/0.3146, allocations: 0.8864 MB / 421.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005744/0.3203, allocations: 4.083 MB / 425.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004171/0.3245, allocations: 3.233 MB / 428.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003157/0.3277, allocations: 1.885 MB / 430.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003489/0.3312, allocations: 2.09 MB / 432.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009591/0.3322, allocations: 0.5078 MB / 433.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001765/0.334, allocations: 0.7107 MB / 434.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3351, allocations: 1.118 MB / 435.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002839/0.3379, allocations: 2.136 MB / 437.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008254/0.3462, allocations: 6.727 MB / 444.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3462, allocations: 0 / 444.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3462, allocations: 0 / 444.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001598/0.3464, allocations: 0 / 444.1 MB, free: 12.77 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.01165/0.3581, allocations: 4.499 MB / 448.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.3581, allocations: 15.89 kB / 448.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007071/0.3588, allocations: 455.8 kB / 449 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004198/0.363, allocations: 0.8378 MB / 449.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004609/0.3677, allocations: 2.444 MB / 452.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.3679, allocations: 242.8 kB / 452.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005618/0.3685, allocations: 323.9 kB / 452.9 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008178/0.3767, allocations: 4.27 MB / 457.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.213e-05/0.3768, allocations: 11.95 kB / 457.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003117/0.3771, allocations: 128 kB / 457.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001556/0.3773, allocations: 146.4 kB / 457.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007011/0.3843, allocations: 3.605 MB / 461 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0225/0.4068, allocations: 13.73 MB / 474.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007207/0.4141, allocations: 6.565 MB / 481.3 MB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/0.4168, allocations: 1.39 MB / 482.7 MB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006497/0.4233, allocations: 3.636 MB / 486.3 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.4234, allocations: 47.88 kB / 486.4 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.496e-06/0.4234, allocations: 0 / 486.4 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of matching and sorting (n=137): time 0.01242/0.4358, allocations: 5.919 MB / 492.3 MB, free: 10.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.4359, allocations: 68.72 kB / 492.4 MB, free: 10.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/0.4388, allocations: 1.776 MB / 494.1 MB, free: 8.941 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.439, allocations: 57.7 kB / 494.2 MB, free: 8.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.4402, allocations: 1.478 MB / 495.7 MB, free: 7.387 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005987/0.4408, allocations: 495.8 kB / 496.2 MB, free: 6.898 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005137/0.4414, allocations: 319.5 kB / 496.5 MB, free: 6.582 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4415, allocations: 301.1 kB / 496.8 MB, free: 6.285 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.4427, allocations: 0.6793 MB / 497.5 MB, free: 5.605 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.4443, allocations: 1.201 MB / 498.7 MB, free: 4.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002823/0.4471, allocations: 1.999 MB / 0.4889 GB, free: 1.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.4471, allocations: 8 kB / 0.4889 GB, free: 1.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00449/0.4516, allocations: 2.559 MB / 0.4914 GB, free: 15.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.4517, allocations: 12.34 kB / 0.4914 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/0.4517, allocations: 23.98 kB / 0.4915 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.4528, allocations: 368 kB / 0.4918 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.4541, allocations: 375.4 kB / 0.4922 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008783/0.4629, allocations: 8.411 MB / 0.5004 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.4646, allocations: 76.06 kB / 0.5005 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001746/0.4647, allocations: 71.98 kB / 0.5005 GB, free: 5.461 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.001918/0.4667, allocations: 1.007 MB / 0.5015 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004301/0.4671, allocations: 206.6 kB / 0.5017 GB, free: 4.242 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004214/0.4713, allocations: 2.293 MB / 0.5039 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/0.4714, allocations: 16 kB / 0.504 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.4714, allocations: 11.98 kB / 0.504 GB, free: 1.855 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.4714, allocations: 3.984 kB / 0.504 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008362/0.4798, allocations: 5.075 MB / 0.5089 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/0.4798, allocations: 4 kB / 0.5089 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007985/0.4806, allocations: 176.1 kB / 0.5091 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.4822, allocations: 0.528 MB / 0.5096 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.4823, allocations: 39.98 kB / 0.5097 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.4962, allocations: 13.23 MB / 0.5226 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.4962, allocations: 4.031 kB / 0.5226 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005594/0.5018, allocations: 3.219 MB / 0.5257 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.5029, allocations: 435.7 kB / 0.5261 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.5032, allocations: 47.86 kB / 0.5262 GB, free: 10.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008532/0.5041, allocations: 63.95 kB / 0.5262 GB, free: 9.945 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/0.5044, allocations: 101.2 kB / 0.5263 GB, free: 9.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.46e-05/0.5045, allocations: 36 kB / 0.5264 GB, free: 9.812 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.5064, allocations: 1.223 MB / 0.5276 GB, free: 8.598 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5064, allocations: 0 / 0.5276 GB, free: 8.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00227/0.5087, allocations: 0.582 MB / 0.5281 GB, free: 8.016 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.005803/0.5145, allocations: 3.845 MB / 0.5319 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.5187, allocations: 2.366 MB / 0.5342 GB, free: 1.633 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5187, allocations: 128 / 0.5342 GB, free: 1.633 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2418/0.7606, allocations: 1.748 MB / 0.5359 GB, free: 131.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/0.764, allocations: 0.5464 MB / 0.5364 GB, free: 131.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03103/0.795, allocations: 20.22 MB / 0.5562 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.7968, allocations: 2.311 MB / 0.5584 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001453/0.7982, allocations: 397 kB / 0.5588 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.7994, allocations: 1.128 MB / 0.5599 GB, free: 117 MB / 462.1 MB Notification: Performance of SimCode: time 1.472e-06/0.7994, allocations: 0 / 0.5599 GB, free: 117 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1/0.8994, allocations: 53.43 MB / 0.6121 GB, free: 64.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.79, allocations: 10.7 kB / 0.6121 GB, free: 64.09 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