Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",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.001053/0.001053, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.001037/0.001037, allocations: 195 kB / 18 MB, free: 4.945 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 39.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2651, allocations: 49.45 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01754/0.2827, allocations: 15.9 MB / 416.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.2931, allocations: 5.368 MB / 421.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002955/0.2961, allocations: 107.6 kB / 421.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003283/0.2994, allocations: 1.172 MB / 422.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.3038, allocations: 1.41 MB / 424.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002334/0.3061, allocations: 0.9469 MB / 425.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004695/0.3109, allocations: 3.965 MB / 429.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003954/0.3148, allocations: 3.611 MB / 432.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.3176, allocations: 1.904 MB / 434.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003113/0.3207, allocations: 2.269 MB / 436.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008347/0.3215, allocations: 0.5234 MB / 437.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.3231, allocations: 0.7342 MB / 438.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.3242, allocations: 1.297 MB / 439.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002497/0.3267, allocations: 2.252 MB / 441.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007704/0.3344, allocations: 6.921 MB / 448.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.3345, allocations: 4 kB / 448.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.36e-06/0.3345, allocations: 0 / 448.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001805/0.3347, allocations: 3.938 kB / 448.6 MB, free: 8.184 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01118/0.3459, allocations: 4.769 MB / 453.4 MB, free: 3.336 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.346, allocations: 16.03 kB / 453.4 MB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006695/0.3466, allocations: 497.5 kB / 453.9 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002876/0.3495, allocations: 0.6776 MB / 454.6 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004823/0.3543, allocations: 2.554 MB / 457.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.3546, allocations: 259.3 kB / 457.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006081/0.3552, allocations: 351.9 kB / 457.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007419/0.3626, allocations: 4.472 MB / 462.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.802e-05/0.3627, allocations: 3.938 kB / 462.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/0.363, allocations: 140 kB / 462.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.3632, allocations: 162.8 kB / 462.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006273/0.3695, allocations: 3.751 MB / 466.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02522/0.3947, allocations: 14.35 MB / 480.6 MB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005782/0.4006, allocations: 5.366 MB / 486 MB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/0.4026, allocations: 1.251 MB / 487.2 MB, free: 276 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007607/0.4103, allocations: 3.815 MB / 491 MB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.4103, allocations: 55.81 kB / 491.1 MB, free: 12.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.986e-06/0.4104, allocations: 0 / 491.1 MB, free: 12.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01009/0.4205, allocations: 5.547 MB / 496.6 MB, free: 6.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.4205, allocations: 68.72 kB / 496.7 MB, free: 6.504 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003643/0.4242, allocations: 2.106 MB / 498.8 MB, free: 4.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.4243, allocations: 45.7 kB / 498.9 MB, free: 4.312 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.4256, allocations: 1.701 MB / 0.4888 GB, free: 2.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.426, allocations: 483.9 kB / 0.4893 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005425/0.4266, allocations: 339.4 kB / 0.4896 GB, free: 1.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.4267, allocations: 305.1 kB / 0.4899 GB, free: 1.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4279, allocations: 0.7222 MB / 0.4906 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.4295, allocations: 1.348 MB / 0.4919 GB, free: 15.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/0.4324, allocations: 2.226 MB / 0.4941 GB, free: 12.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.742e-05/0.4324, allocations: 8 kB / 0.4941 GB, free: 12.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004187/0.4366, allocations: 2.53 MB / 0.4966 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.4367, allocations: 16.5 kB / 0.4966 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.23e-05/0.4367, allocations: 20 kB / 0.4966 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.4372, allocations: 146.4 kB / 0.4968 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/0.4388, allocations: 459.3 kB / 0.4972 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002816/0.4417, allocations: 3.353 MB / 0.5005 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.4433, allocations: 119.8 kB / 0.5006 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.4435, allocations: 83.98 kB / 0.5007 GB, free: 5.566 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001913/0.4454, allocations: 1.052 MB / 0.5017 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005817/0.446, allocations: 222.5 kB / 0.5019 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003797/0.4498, allocations: 2.189 MB / 0.504 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.4498, allocations: 12 kB / 0.5041 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.4499, allocations: 7.938 kB / 0.5041 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4499, allocations: 7.969 kB / 0.5041 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009445/0.4593, allocations: 5.179 MB / 0.5091 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.4594, allocations: 4.125 kB / 0.5091 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4604, allocations: 235.6 kB / 0.5094 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/0.4612, allocations: 267.4 kB / 0.5096 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.4614, allocations: 35.98 kB / 0.5096 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006934/0.4683, allocations: 7.826 MB / 0.5173 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4683, allocations: 0 / 0.5173 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.4734, allocations: 3.2 MB / 0.5204 GB, free: 488 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/0.4747, allocations: 463.6 kB / 0.5209 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005715/0.4753, allocations: 32.08 kB / 0.5209 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.4766, allocations: 67.92 kB / 0.521 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.4768, allocations: 97.42 kB / 0.521 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.809e-05/0.4769, allocations: 36 kB / 0.5211 GB, free: 15.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.4797, allocations: 1.435 MB / 0.5225 GB, free: 14.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4797, allocations: 4 kB / 0.5225 GB, free: 14.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002605/0.4823, allocations: 0.5663 MB / 0.523 GB, free: 13.75 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005842/0.4881, allocations: 3.808 MB / 0.5268 GB, free: 9.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.4915, allocations: 2.116 MB / 0.5288 GB, free: 7.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.4915, allocations: 0 / 0.5288 GB, free: 7.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.4935, allocations: 1.393 MB / 0.5302 GB, free: 6.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003004/0.4965, allocations: 0.5545 MB / 0.5307 GB, free: 5.691 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2395/0.736, allocations: 21.35 MB / 0.5516 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.7376, allocations: 2.418 MB / 0.5539 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001293/0.7389, allocations: 0.4915 MB / 0.5544 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/0.7402, allocations: 1.296 MB / 0.5557 GB, free: 121 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7402, allocations: 0 / 0.5557 GB, free: 121 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08411/0.8243, allocations: 51.93 MB / 0.6064 GB, free: 69.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.39, allocations: 4.438 kB / 0.6064 GB, free: 69.69 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --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_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches