Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",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.001639/0.00164, allocations: 107.7 kB / 17.06 MB, free: 5.992 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: 197.3 kB / 18.01 MB, free: 5.066 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.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 51.91 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3087, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02485/0.3336, allocations: 20.29 MB / 420.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.3475, allocations: 5.911 MB / 426.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004114/0.3516, allocations: 135.4 kB / 426.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004547/0.3562, allocations: 1.346 MB / 427.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009362/0.3656, allocations: 1.932 MB / 429.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00531/0.371, allocations: 1.22 MB / 431.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01386/0.3848, allocations: 6.114 MB / 437.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009562/0.3945, allocations: 5.434 MB / 442.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006884/0.4014, allocations: 2.831 MB / 445.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008251/0.4097, allocations: 3.39 MB / 448.9 MB, free: 7.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003125/0.4129, allocations: 0.7812 MB / 449.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005096/0.418, allocations: 1.07 MB / 450.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004279/0.4223, allocations: 1.936 MB / 452.6 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008483/0.4308, allocations: 3.349 MB / 456 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02023/0.4511, allocations: 10.34 MB / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.4512, allocations: 0 / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.4512, allocations: 0 / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004224/0.4516, allocations: 0 / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02431/0.4759, allocations: 6.734 MB / 473.1 MB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.476, allocations: 11.89 kB / 473.1 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003005/0.479, allocations: 0.7 MB / 473.8 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006635/0.4857, allocations: 1.036 MB / 474.8 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.4965, allocations: 3.601 MB / 478.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006025/0.4971, allocations: 387.4 kB / 478.8 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002299/0.4995, allocations: 0.4999 MB / 479.3 MB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.5218, allocations: 6.783 MB / 486.1 MB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002926/0.5221, allocations: 15.94 kB / 486.1 MB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001598/0.5237, allocations: 208 kB / 486.3 MB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003113/0.5241, allocations: 238.2 kB / 486.5 MB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.54, allocations: 5.759 MB / 492.3 MB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04627/0.5863, allocations: 20.9 MB / 0.5012 GB, free: 6.801 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0115/0.5978, allocations: 8.539 MB / 0.5095 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004868/0.6028, allocations: 2.093 MB / 0.5115 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01412/0.6169, allocations: 5.916 MB / 0.5173 GB, free: 5.152 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.985e-05/0.617, allocations: 56.56 kB / 0.5174 GB, free: 5.086 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.899e-06/0.6171, allocations: 3.938 kB / 0.5174 GB, free: 5.082 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02449/0.6416, allocations: 10.45 MB / 0.5276 GB, free: 10.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.6417, allocations: 77.41 kB / 0.5277 GB, free: 10.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006929/0.6486, allocations: 2.904 MB / 0.5305 GB, free: 7.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004265/0.6491, allocations: 61.7 kB / 0.5305 GB, free: 7.324 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002413/0.6515, allocations: 2.423 MB / 0.5329 GB, free: 4.883 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/0.6527, allocations: 0.8057 MB / 0.5337 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001506/0.6542, allocations: 0.514 MB / 0.5342 GB, free: 3.547 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.6543, allocations: 305.1 kB / 0.5345 GB, free: 3.246 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.657, allocations: 1.275 MB / 0.5357 GB, free: 1.969 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2566/0.9136, allocations: 2.169 MB / 0.5379 GB, free: 124.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009481/0.9231, allocations: 3.672 MB / 0.5414 GB, free: 123.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.03e-05/0.9232, allocations: 7.938 kB / 0.5414 GB, free: 123.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01156/0.9347, allocations: 4.463 MB / 0.5458 GB, free: 121.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.9348, allocations: 19.66 kB / 0.5458 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-05/0.9349, allocations: 27.56 kB / 0.5459 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/0.9367, allocations: 0.5214 MB / 0.5464 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004166/0.9409, allocations: 0.6854 MB / 0.547 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.9515, allocations: 10.18 MB / 0.557 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002781/0.9544, allocations: 173.6 kB / 0.5571 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002909/0.9547, allocations: 131.2 kB / 0.5573 GB, free: 112.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002795/0.9575, allocations: 1.515 MB / 0.5587 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006011/0.9581, allocations: 334 kB / 0.5591 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005386/0.9635, allocations: 3.883 MB / 0.5629 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.9635, allocations: 22.53 kB / 0.5629 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.758e-05/0.9635, allocations: 9.031 kB / 0.5629 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.9636, allocations: 11.44 kB / 0.5629 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/0.9747, allocations: 8.473 MB / 0.5712 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.9747, allocations: 4 kB / 0.5712 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.9761, allocations: 375.4 kB / 0.5715 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.9777, allocations: 0.7249 MB / 0.5722 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.9779, allocations: 65.56 kB / 0.5723 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/0.9889, allocations: 16.64 MB / 0.5886 GB, free: 84.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.989, allocations: 4 kB / 0.5886 GB, free: 84.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007325/0.9963, allocations: 5.58 MB / 0.594 GB, free: 79.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.9977, allocations: 0.6667 MB / 0.5947 GB, free: 78.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/0.9981, allocations: 52 kB / 0.5947 GB, free: 78.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.9996, allocations: 135.9 kB / 0.5948 GB, free: 78.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/1, allocations: 165.6 kB / 0.595 GB, free: 78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/1, allocations: 66.17 kB / 0.5951 GB, free: 77.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002397/1.002, allocations: 1.967 MB / 0.597 GB, free: 75.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.003, allocations: 0 / 0.597 GB, free: 75.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002975/1.005, allocations: 0.9298 MB / 0.5979 GB, free: 75.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,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.01156/1.017, allocations: 6.285 MB / 0.604 GB, free: 68.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007921/1.025, allocations: 3.967 MB / 0.6079 GB, free: 64.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/1.025, allocations: 0 / 0.6079 GB, free: 64.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003601/1.029, allocations: 2.67 MB / 0.6105 GB, free: 61.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003993/1.033, allocations: 0.8512 MB / 0.6113 GB, free: 60.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04215/1.075, allocations: 33.41 MB / 0.644 GB, free: 26.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002486/1.077, allocations: 3.298 MB / 0.6472 GB, free: 22.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00225/1.08, allocations: 0.7539 MB / 0.6479 GB, free: 22.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001968/1.082, allocations: 1.944 MB / 0.6498 GB, free: 20.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/1.082, allocations: 0 / 0.6498 GB, free: 20.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1913/1.273, allocations: 81.78 MB / 0.7297 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/17.76, allocations: 11.14 kB / 0.7297 GB, free: 3.188 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches