Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.001313/0.001313, allocations: 113.1 kB / 17.06 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.001271/0.001271, allocations: 200 kB / 18.01 MB, free: 5.043 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 51.91 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2848, allocations: 49.43 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04171/0.3266, allocations: 37.25 MB / 437.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02297/0.3496, allocations: 10.02 MB / 447.5 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008513/0.3582, allocations: 271.1 kB / 447.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0233/0.3815, allocations: 9.102 MB / 456.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01565/0.3972, allocations: 3.907 MB / 460.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008078/0.4053, allocations: 2.389 MB / 463.2 MB, free: 9.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02125/0.4266, allocations: 14.08 MB / 477.3 MB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04566/0.4723, allocations: 25.62 MB / 0.4911 GB, free: 1.699 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01369/0.486, allocations: 7.172 MB / 0.4981 GB, free: 10.51 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01481/0.5009, allocations: 7.899 MB / 0.5058 GB, free: 2.582 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00613/0.5071, allocations: 2.027 MB / 0.5078 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008641/0.5157, allocations: 2.421 MB / 0.5102 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007361/0.5232, allocations: 4.025 MB / 0.5141 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01558/0.5388, allocations: 7.821 MB / 0.5217 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5068/1.046, allocations: 27 MB / 0.5481 GB, free: 58.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/1.046, allocations: 0 / 0.5481 GB, free: 58.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.535e-06/1.046, allocations: 1 kB / 0.5481 GB, free: 58.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008474/1.047, allocations: 0 / 0.5481 GB, free: 58.3 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05105/1.098, allocations: 16.13 MB / 0.5639 GB, free: 53.54 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.098, allocations: 12.14 kB / 0.5639 GB, free: 53.54 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007908/1.106, allocations: 1.927 MB / 0.5658 GB, free: 53.08 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0357/1.141, allocations: 6.465 MB / 0.5721 GB, free: 50.56 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01759/1.159, allocations: 8.6 MB / 0.5805 GB, free: 47.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008319/1.16, allocations: 0.9071 MB / 0.5814 GB, free: 46.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005433/1.165, allocations: 1.191 MB / 0.5825 GB, free: 46.28 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04887/1.214, allocations: 18.77 MB / 0.6009 GB, free: 28.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006887/1.215, allocations: 23.89 kB / 0.6009 GB, free: 28.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00524/1.22, allocations: 0.4892 MB / 0.6014 GB, free: 28.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006018/1.221, allocations: 0.6537 MB / 0.602 GB, free: 27.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03486/1.256, allocations: 17 MB / 0.6186 GB, free: 10.81 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/1.37, allocations: 62.04 MB / 0.6792 GB, free: 12.32 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03212/1.402, allocations: 29.71 MB / 0.7082 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007495/1.41, allocations: 3.999 MB / 0.7121 GB, free: 7.168 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02249/1.432, allocations: 10.09 MB / 0.722 GB, free: 13.14 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.38e-05/1.433, allocations: 77.36 kB / 0.722 GB, free: 13.05 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.502e-06/1.433, allocations: 0 / 0.722 GB, free: 13.05 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04898/1.482, allocations: 20.38 MB / 0.7419 GB, free: 8.441 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.566e-05/1.482, allocations: 116.4 kB / 0.742 GB, free: 8.309 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/1.492, allocations: 5.165 MB / 0.7471 GB, free: 3.152 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001119/1.494, allocations: 89.7 kB / 0.7472 GB, free: 3.059 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2366/1.73, allocations: 5.536 MB / 0.7526 GB, free: 222.3 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.732, allocations: 1.497 MB / 0.754 GB, free: 221.4 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002639/1.735, allocations: 1.246 MB / 0.7553 GB, free: 221.3 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.226e-05/1.735, allocations: 307.6 kB / 0.7556 GB, free: 221 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004436/1.739, allocations: 2.847 MB / 0.7583 GB, free: 220.9 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006089/1.745, allocations: 5.352 MB / 0.7636 GB, free: 217.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.756, allocations: 8.721 MB / 0.7721 GB, free: 211 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-05/1.756, allocations: 27.25 kB / 0.7721 GB, free: 211 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01654/1.772, allocations: 9.703 MB / 0.7816 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.976e-05/1.772, allocations: 39.41 kB / 0.7816 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001319/1.772, allocations: 84.62 kB / 0.7817 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002805/1.775, allocations: 1.122 MB / 0.7828 GB, free: 206.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005171/1.78, allocations: 1.449 MB / 0.7842 GB, free: 206.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/1.795, allocations: 13.48 MB / 0.7974 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005639/1.8, allocations: 361.2 kB / 0.7977 GB, free: 196.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/1.801, allocations: 319.3 kB / 0.798 GB, free: 195.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,1,100.0%), (10,46,50.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.007765/1.809, allocations: 4.23 MB / 0.8021 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001604/1.811, allocations: 0.5586 MB / 0.8027 GB, free: 191.6 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.822, allocations: 7.097 MB / 0.8096 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006/1.829, allocations: 4.237 MB / 0.8138 GB, free: 181.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.454e-05/1.829, allocations: 12 kB / 0.8138 GB, free: 181.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-05/1.829, allocations: 26.38 kB / 0.8138 GB, free: 181.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02821/1.857, allocations: 16.93 MB / 0.8303 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.901e-05/1.857, allocations: 4 kB / 0.8303 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002818/1.86, allocations: 0.6832 MB / 0.831 GB, free: 165.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00292/1.863, allocations: 1.193 MB / 0.8322 GB, free: 164.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003905/1.863, allocations: 104 kB / 0.8323 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/1.878, allocations: 17.39 MB / 0.8492 GB, free: 146 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/1.878, allocations: 7.938 kB / 0.8493 GB, free: 146 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.891, allocations: 10.3 MB / 0.8593 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002704/1.894, allocations: 1.15 MB / 0.8604 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.895, allocations: 76 kB / 0.8605 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.898, allocations: 211.8 kB / 0.8607 GB, free: 134.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000757/1.899, allocations: 307.4 kB / 0.861 GB, free: 133.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002837/1.9, allocations: 123.9 kB / 0.8611 GB, free: 133.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004842/1.904, allocations: 3.461 MB / 0.8645 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.2e-07/1.904, allocations: 1.641 kB / 0.8645 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006953/1.911, allocations: 1.961 MB / 0.8664 GB, free: 128.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01469/1.926, allocations: 11.06 MB / 0.8772 GB, free: 117 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01219/1.938, allocations: 7.707 MB / 0.8847 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/1.938, allocations: 4 kB / 0.8848 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006096/1.944, allocations: 4.096 MB / 0.8888 GB, free: 105.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007075/1.952, allocations: 1.435 MB / 0.8902 GB, free: 103.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1012/2.053, allocations: 66.82 MB / 0.9554 GB, free: 33.58 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009181/2.062, allocations: 7.369 MB / 0.9626 GB, free: 26.18 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005291/2.067, allocations: 2.001 MB / 0.9646 GB, free: 24.17 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005792/2.073, allocations: 4.391 MB / 0.9688 GB, free: 19.78 MB / 0.5763 GB Notification: Performance of SimCode: time 1.072e-06/2.073, allocations: 0 / 0.9688 GB, free: 19.78 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4322/2.505, allocations: 157.5 MB / 1.123 GB, free: 101.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.39/25.89, allocations: 12 kB / 1.123 GB, free: 101.4 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches