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.002572/0.002572, allocations: 106.9 kB / 16.92 MB, free: 5.777 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.003249/0.00325, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.073/3.073, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002203, allocations: 51.98 kB / 300.8 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2004, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.4622/0.6627, allocations: 37.24 MB / 387.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.04827/0.711, allocations: 10.03 MB / 397.5 MB, free: 384 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02034/0.7314, allocations: 268.3 kB / 397.7 MB, free: 332 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04339/0.775, allocations: 9.096 MB / 406.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03113/0.8061, allocations: 3.912 MB / 410.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01705/0.8232, allocations: 2.369 MB / 413.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04099/0.8642, allocations: 14 MB / 427.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09192/0.9562, allocations: 25.77 MB / 452.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02405/0.9803, allocations: 7.157 MB / 460 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02679/1.007, allocations: 7.926 MB / 468 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01177/1.019, allocations: 2.027 MB / 470 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01563/1.035, allocations: 2.425 MB / 472.4 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0133/1.048, allocations: 4.037 MB / 476.4 MB, free: 7.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03093/1.079, allocations: 7.817 MB / 484.3 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.063/1.142, allocations: 26.78 MB / 0.4991 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.632e-05/1.142, allocations: 0 / 0.4991 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.059e-06/1.142, allocations: 0 / 0.4991 GB, free: 4.754 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00121/1.144, allocations: 0 / 0.4991 GB, free: 4.754 MB / 414.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.1087/1.252, allocations: 15.88 MB / 0.5146 GB, free: 4.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.037e-05/1.252, allocations: 11.89 kB / 0.5146 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01284/1.265, allocations: 1.931 MB / 0.5165 GB, free: 2.793 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7733/2.039, allocations: 6.366 MB / 0.5227 GB, free: 117.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03826/2.077, allocations: 8.329 MB / 0.5308 GB, free: 114.1 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002521/2.079, allocations: 0.9075 MB / 0.5317 GB, free: 113.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007927/2.087, allocations: 1.197 MB / 0.5329 GB, free: 113.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0914/2.179, allocations: 18.77 MB / 0.5512 GB, free: 104.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001091/2.18, allocations: 26.61 kB / 0.5512 GB, free: 104 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007997/2.188, allocations: 0.4969 MB / 0.5517 GB, free: 103.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001162/2.189, allocations: 0.6472 MB / 0.5523 GB, free: 103.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06251/2.252, allocations: 17 MB / 0.5689 GB, free: 87.36 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1847/2.437, allocations: 62.6 MB / 0.6301 GB, free: 23.63 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04781/2.485, allocations: 29.71 MB / 0.6591 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01458/2.499, allocations: 4.02 MB / 0.663 GB, free: 2.426 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0447/2.544, allocations: 10.13 MB / 0.6729 GB, free: 8.316 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001534/2.544, allocations: 77.8 kB / 0.673 GB, free: 8.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 1.789e-05/2.544, allocations: 4 kB / 0.673 GB, free: 8.227 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.09617/2.64, allocations: 20.11 MB / 0.6926 GB, free: 3.801 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001684/2.641, allocations: 116.4 kB / 0.6927 GB, free: 3.664 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4176/3.058, allocations: 5.154 MB / 0.6978 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001259/3.06, allocations: 94.64 kB / 0.6978 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0077/3.067, allocations: 5.352 MB / 0.7031 GB, free: 146.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003008/3.07, allocations: 1.423 MB / 0.7045 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006636/3.077, allocations: 1.247 MB / 0.7057 GB, free: 145.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.492e-05/3.077, allocations: 306.7 kB / 0.706 GB, free: 144.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/3.088, allocations: 2.848 MB / 0.7088 GB, free: 143.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/3.1, allocations: 5.35 MB / 0.714 GB, free: 139.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02134/3.122, allocations: 8.725 MB / 0.7225 GB, free: 133.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002265/3.122, allocations: 24.41 kB / 0.7225 GB, free: 133.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.03417/3.156, allocations: 9.675 MB / 0.732 GB, free: 129.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/3.156, allocations: 39.28 kB / 0.732 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/3.157, allocations: 86.22 kB / 0.7321 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005517/3.162, allocations: 1.123 MB / 0.7332 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01077/3.173, allocations: 1.456 MB / 0.7346 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02747/3.2, allocations: 13.48 MB / 0.7478 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01163/3.212, allocations: 358.1 kB / 0.7481 GB, free: 119.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003118/3.215, allocations: 321.6 kB / 0.7484 GB, free: 119.2 MB / 478.1 MB 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.01592/3.231, allocations: 4.236 MB / 0.7526 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003298/3.235, allocations: 0.5336 MB / 0.7531 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02749/3.262, allocations: 7.1 MB / 0.76 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01393/3.276, allocations: 4.231 MB / 0.7641 GB, free: 109.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-05/3.276, allocations: 16 kB / 0.7642 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001524/3.277, allocations: 21.09 kB / 0.7642 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06369/3.34, allocations: 16.95 MB / 0.7807 GB, free: 92.97 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.431e-05/3.34, allocations: 4 kB / 0.7807 GB, free: 92.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005983/3.346, allocations: 0.687 MB / 0.7814 GB, free: 92.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005871/3.352, allocations: 1.205 MB / 0.7826 GB, free: 91.05 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00078/3.353, allocations: 99.97 kB / 0.7827 GB, free: 90.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02929/3.382, allocations: 17.41 MB / 0.7997 GB, free: 72.75 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/3.382, allocations: 4 kB / 0.7997 GB, free: 72.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0334/3.416, allocations: 10.26 MB / 0.8097 GB, free: 62.31 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007051/3.423, allocations: 1.115 MB / 0.8108 GB, free: 61.17 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003979/3.427, allocations: 83.98 kB / 0.8109 GB, free: 61.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007619/3.435, allocations: 211.8 kB / 0.8111 GB, free: 60.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001875/3.437, allocations: 303.4 kB / 0.8114 GB, free: 60.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001119/3.438, allocations: 124 kB / 0.8115 GB, free: 60.46 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01223/3.45, allocations: 3.461 MB / 0.8149 GB, free: 57.01 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.603e-06/3.45, allocations: 4 kB / 0.8149 GB, free: 57.01 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.02056/3.471, allocations: 1.956 MB / 0.8168 GB, free: 55.06 MB / 478.1 MB 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.03662/3.507, allocations: 11.03 MB / 0.8275 GB, free: 43.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.04284/3.55, allocations: 10.83 MB / 0.8381 GB, free: 33.01 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.201e-05/3.55, allocations: 4 kB / 0.8381 GB, free: 33.01 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01286/3.563, allocations: 4.09 MB / 0.8421 GB, free: 28.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01805/3.581, allocations: 1.441 MB / 0.8435 GB, free: 27.44 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6023/4.184, allocations: 84.32 MB / 0.9259 GB, free: 129.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02063/4.204, allocations: 7.366 MB / 0.9331 GB, free: 126.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01402/4.219, allocations: 2.002 MB / 0.935 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01197/4.231, allocations: 4.389 MB / 0.9393 GB, free: 119.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.953e-06/4.231, allocations: 0 / 0.9393 GB, free: 119.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.793/5.024, allocations: 159.8 MB / 1.095 GB, free: 138.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/26, allocations: 10.19 kB / 1.095 GB, free: 138.5 MB / 494.1 MB (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