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.001635/0.001635, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001886/0.001886, allocations: 194.9 kB / 18 MB, free: 5.172 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.339/1.339, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009054/0.0009055, allocations: 51.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2575, 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.SMPM_VoltageSource): time 0.01702/0.2746, allocations: 15.9 MB / 416.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.2855, allocations: 5.361 MB / 421.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003793/0.2893, allocations: 107.6 kB / 421.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003583/0.2929, allocations: 1.183 MB / 422.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0049/0.2979, allocations: 1.398 MB / 424.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.3004, allocations: 0.9469 MB / 425.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005304/0.3057, allocations: 3.961 MB / 429.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003908/0.3096, allocations: 3.619 MB / 432.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.3121, allocations: 1.892 MB / 434.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003026/0.3152, allocations: 2.281 MB / 436.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007601/0.316, allocations: 0.5156 MB / 437.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.3174, allocations: 0.738 MB / 438.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.3185, allocations: 1.289 MB / 439.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002112/0.3206, allocations: 2.256 MB / 441.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007237/0.3278, allocations: 6.929 MB / 448.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3279, allocations: 3.938 kB / 448.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3279, allocations: 0 / 448.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001343/0.328, allocations: 0 / 448.6 MB, free: 8.176 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.01078/0.3388, allocations: 4.777 MB / 453.4 MB, free: 3.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3389, allocations: 8.031 kB / 453.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006626/0.3395, allocations: 489.5 kB / 453.9 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002902/0.3424, allocations: 0.6893 MB / 454.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00583/0.3483, allocations: 2.55 MB / 457.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.3486, allocations: 259.3 kB / 457.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.3497, allocations: 351.8 kB / 457.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.3599, allocations: 4.468 MB / 462.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.36, allocations: 4 kB / 462.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000594/0.3606, allocations: 144 kB / 462.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.3608, allocations: 162.8 kB / 462.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007039/0.3679, allocations: 3.747 MB / 466.3 MB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02529/0.3932, allocations: 14.35 MB / 480.6 MB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005533/0.3988, allocations: 5.372 MB / 486 MB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002056/0.4008, allocations: 1.252 MB / 487.2 MB, free: 272 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006924/0.4078, allocations: 3.819 MB / 491.1 MB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.4079, allocations: 47.81 kB / 491.1 MB, free: 12.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.006e-06/0.4079, allocations: 0 / 491.1 MB, free: 12.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.009729/0.4176, allocations: 5.547 MB / 496.6 MB, free: 6.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.4177, allocations: 64.72 kB / 496.7 MB, free: 6.508 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.4212, allocations: 2.11 MB / 498.8 MB, free: 4.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.4213, allocations: 49.7 kB / 498.9 MB, free: 4.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.4225, allocations: 1.697 MB / 0.4888 GB, free: 2.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004109/0.4229, allocations: 483.9 kB / 0.4893 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005408/0.4235, allocations: 347.4 kB / 0.4896 GB, free: 1.773 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.298e-05/0.4236, allocations: 301.1 kB / 0.4899 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.4248, allocations: 0.7184 MB / 0.4906 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.4263, allocations: 1.352 MB / 0.4919 GB, free: 15.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002871/0.4292, allocations: 2.226 MB / 0.4941 GB, free: 12.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.778e-05/0.4292, allocations: 4 kB / 0.4941 GB, free: 12.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004136/0.4334, allocations: 2.538 MB / 0.4966 GB, free: 10.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.4334, allocations: 16.06 kB / 0.4966 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/0.4335, allocations: 20 kB / 0.4966 GB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.4339, allocations: 134.5 kB / 0.4968 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.4354, allocations: 463.2 kB / 0.4972 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/0.4382, allocations: 3.356 MB / 0.5005 GB, free: 5.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.44, allocations: 115.8 kB / 0.5006 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/0.4402, 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.001955/0.4421, allocations: 1.051 MB / 0.5017 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005517/0.4427, allocations: 226.5 kB / 0.5019 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.4465, allocations: 2.185 MB / 0.504 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4465, allocations: 15.94 kB / 0.5041 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4466, allocations: 7.938 kB / 0.5041 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.4466, allocations: 11.97 kB / 0.5041 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009405/0.456, allocations: 5.171 MB / 0.5091 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.456, allocations: 0 / 0.5091 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4571, allocations: 235.8 kB / 0.5093 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008165/0.4579, allocations: 275.3 kB / 0.5096 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.4581, allocations: 32 kB / 0.5096 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007238/0.4653, allocations: 7.83 MB / 0.5173 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.4653, allocations: 4.031 kB / 0.5173 GB, free: 3.762 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.4707, allocations: 3.204 MB / 0.5204 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.4719, allocations: 463.7 kB / 0.5209 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005203/0.4725, allocations: 28 kB / 0.5209 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.4737, allocations: 67.92 kB / 0.521 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.474, allocations: 97.06 kB / 0.521 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.901e-05/0.4741, allocations: 39.98 kB / 0.5211 GB, free: 15.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002701/0.4768, allocations: 1.435 MB / 0.5225 GB, free: 14.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4768, allocations: 0 / 0.5225 GB, free: 14.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002319/0.4791, allocations: 0.5585 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.00513/0.4842, allocations: 3.817 MB / 0.5268 GB, free: 9.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00343/0.4877, allocations: 2.111 MB / 0.5288 GB, free: 7.676 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.4877, allocations: 3.984 kB / 0.5288 GB, free: 7.672 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4897, allocations: 1.386 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.003065/0.4928, allocations: 0.5548 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.2569/0.7497, allocations: 21.35 MB / 0.5516 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.7516, allocations: 2.414 MB / 0.5539 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.753, allocations: 0.4916 MB / 0.5544 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/0.7543, allocations: 1.296 MB / 0.5557 GB, free: 120.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7543, allocations: 0 / 0.5557 GB, free: 120.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08569/0.84, allocations: 51.94 MB / 0.6064 GB, free: 69.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.43, allocations: 448 / 0.6064 GB, free: 69.45 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