Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.00122/0.00122, allocations: 113.4 kB / 17.72 MB, free: 5.445 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.001254/0.001255, allocations: 184.1 kB / 18.65 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 55.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08886/0.09006, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2169/0.307, allocations: 37.34 MB / 412 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.3308, allocations: 10.02 MB / 422 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008987/0.3398, allocations: 230.5 kB / 422.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02292/0.3628, allocations: 9.194 MB / 431.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01525/0.3781, allocations: 4.049 MB / 435.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007838/0.386, allocations: 2.418 MB / 437.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02069/0.4067, allocations: 14.25 MB / 452.2 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04358/0.4503, allocations: 25.58 MB / 477.8 MB, free: 8.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01346/0.4638, allocations: 7.285 MB / 485 MB, free: 1.312 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01384/0.4777, allocations: 7.996 MB / 493 MB, free: 9.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006019/0.4838, allocations: 2.035 MB / 495.1 MB, free: 7.254 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008237/0.492, allocations: 2.437 MB / 497.5 MB, free: 4.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006753/0.4988, allocations: 4.095 MB / 0.4898 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01494/0.5138, allocations: 7.887 MB / 0.4975 GB, free: 8.793 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0386/0.5524, allocations: 27.06 MB / 0.524 GB, free: 13.65 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.5525, allocations: 3.938 kB / 0.524 GB, free: 13.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5525, allocations: 0 / 0.524 GB, free: 13.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007863/0.5533, allocations: 0 / 0.524 GB, free: 13.64 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05221/0.6055, allocations: 16.31 MB / 0.5399 GB, free: 13.2 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.6056, allocations: 15.89 kB / 0.5399 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007391/0.613, allocations: 1.964 MB / 0.5418 GB, free: 11.21 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04308/0.6561, allocations: 7.46 MB / 0.5491 GB, free: 3.73 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3599/1.016, allocations: 7.787 MB / 0.5567 GB, free: 131.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001061/1.017, allocations: 0.9148 MB / 0.5576 GB, free: 131.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005736/1.023, allocations: 1.209 MB / 0.5588 GB, free: 131.1 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05324/1.076, allocations: 19.23 MB / 0.5776 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006751/1.077, allocations: 21.34 kB / 0.5776 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004707/1.082, allocations: 0.4956 MB / 0.5781 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009056/1.083, allocations: 0.6901 MB / 0.5788 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03623/1.119, allocations: 17.68 MB / 0.596 GB, free: 112.9 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1041/1.223, allocations: 63.29 MB / 0.6578 GB, free: 49.33 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02724/1.25, allocations: 38.67 MB / 0.6956 GB, free: 5.914 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006599/1.257, allocations: 4.176 MB / 0.6997 GB, free: 1.738 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02801/1.285, allocations: 12.22 MB / 0.7116 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.563e-05/1.285, allocations: 81.78 kB / 0.7117 GB, free: 5.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=402): time 6.763e-06/1.285, allocations: 0 / 0.7117 GB, free: 5.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=412): time 0.05251/1.338, allocations: 20.32 MB / 0.7315 GB, free: 1.414 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.146e-05/1.338, allocations: 124.3 kB / 0.7316 GB, free: 1.273 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/1.348, allocations: 5.313 MB / 0.7368 GB, free: 12.04 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008945/1.349, allocations: 97.7 kB / 0.7369 GB, free: 11.94 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004974/1.354, allocations: 5.682 MB / 0.7425 GB, free: 6.355 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002376/1.357, allocations: 1.497 MB / 0.7439 GB, free: 4.875 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003199/1.36, allocations: 1.315 MB / 0.7452 GB, free: 3.551 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001308/1.36, allocations: 305.1 kB / 0.7455 GB, free: 3.25 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006065/1.366, allocations: 2.906 MB / 0.7484 GB, free: 348 kB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2396/1.606, allocations: 5.637 MB / 0.7539 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/1.618, allocations: 9.109 MB / 0.7628 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/1.618, allocations: 26.44 kB / 0.7628 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.02378/1.642, allocations: 10.02 MB / 0.7726 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/1.642, allocations: 43.91 kB / 0.7726 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002234/1.642, allocations: 92.03 kB / 0.7727 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003552/1.646, allocations: 1.125 MB / 0.7738 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006496/1.653, allocations: 1.529 MB / 0.7753 GB, free: 151.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/1.668, allocations: 13.48 MB / 0.7885 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006713/1.675, allocations: 365 kB / 0.7888 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001776/1.677, allocations: 343.1 kB / 0.7891 GB, free: 141.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * 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,52.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.008481/1.685, allocations: 4.302 MB / 0.7933 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001593/1.687, allocations: 0.5647 MB / 0.7939 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01247/1.699, allocations: 7.125 MB / 0.8008 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006397/1.706, allocations: 4.227 MB / 0.805 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.572e-05/1.706, allocations: 19.62 kB / 0.805 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.058e-05/1.706, allocations: 19.17 kB / 0.805 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/1.737, allocations: 17.01 MB / 0.8216 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.9e-05/1.737, allocations: 4 kB / 0.8216 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003004/1.74, allocations: 0.6885 MB / 0.8223 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00314/1.743, allocations: 1.183 MB / 0.8235 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005989/1.744, allocations: 103.4 kB / 0.8236 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01604/1.76, allocations: 17.38 MB / 0.8405 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.76, allocations: 11.94 kB / 0.8405 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/1.775, allocations: 10.31 MB / 0.8506 GB, free: 94.09 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003173/1.778, allocations: 1.149 MB / 0.8517 GB, free: 92.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00124/1.779, allocations: 92.55 kB / 0.8518 GB, free: 92.85 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002852/1.782, allocations: 211.9 kB / 0.852 GB, free: 92.64 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007037/1.783, allocations: 307.2 kB / 0.8523 GB, free: 92.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/1.783, allocations: 128 kB / 0.8524 GB, free: 92.21 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005565/1.789, allocations: 3.542 MB / 0.8559 GB, free: 88.69 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.71e-07/1.789, allocations: 4 kB / 0.8559 GB, free: 88.68 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008975/1.798, allocations: 1.986 MB / 0.8578 GB, free: 86.7 MB / 0.5138 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.01532/1.813, allocations: 11.06 MB / 0.8686 GB, free: 75.48 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01282/1.826, allocations: 7.851 MB / 0.8763 GB, free: 67.55 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.826, allocations: 0 / 0.8763 GB, free: 67.55 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006593/1.832, allocations: 4.088 MB / 0.8803 GB, free: 63.39 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009965/1.842, allocations: 1.444 MB / 0.8817 GB, free: 61.96 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3676/2.21, allocations: 68.51 MB / 0.9486 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01565/2.226, allocations: 7.449 MB / 0.9559 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0073/2.233, allocations: 2.083 MB / 0.9579 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007928/2.241, allocations: 4.396 MB / 0.9622 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.402e-06/2.241, allocations: 0 / 0.9622 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2322/2.473, allocations: 159.4 MB / 1.118 GB, free: 27.21 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.21/26.68, allocations: 4.875 kB / 1.118 GB, free: 27.21 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches