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.002131/0.002131, allocations: 109.9 kB / 16.92 MB, free: 6.145 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.002453/0.002453, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.378/2.378, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 47.27 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1742, allocations: 49.45 MB / 350.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.03077/0.205, allocations: 15.88 MB / 366.1 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3153/0.5203, allocations: 5.365 MB / 371.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005994/0.5264, allocations: 102.6 kB / 371.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00755/0.534, allocations: 1.118 MB / 372.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009604/0.5437, allocations: 1.357 MB / 374 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005204/0.549, allocations: 0.9531 MB / 375 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.5598, allocations: 3.94 MB / 378.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01374/0.5736, allocations: 3.609 MB / 382.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007581/0.5813, allocations: 1.88 MB / 384.4 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008395/0.5898, allocations: 2.268 MB / 386.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003761/0.5936, allocations: 0.5167 MB / 387.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005371/0.599, allocations: 0.7509 MB / 387.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0034/0.6025, allocations: 1.292 MB / 389.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007328/0.6098, allocations: 2.254 MB / 391.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/0.6297, allocations: 6.835 MB / 398.3 MB, free: 15.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.799e-06/0.6298, allocations: 0 / 398.3 MB, free: 15.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.6298, allocations: 4 kB / 398.3 MB, free: 15.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.6301, allocations: 0 / 398.3 MB, free: 15.44 MB / 318.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.02821/0.6584, allocations: 4.661 MB / 403 MB, free: 12.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.484e-05/0.6585, allocations: 15.89 kB / 403 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002817/0.6613, allocations: 493.5 kB / 403.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007903/0.6693, allocations: 0.674 MB / 404.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.6795, allocations: 2.46 MB / 406.6 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004998/0.6801, allocations: 270.5 kB / 406.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001662/0.6818, allocations: 351.8 kB / 407.2 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.6961, allocations: 4.47 MB / 411.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001665/0.6963, allocations: 4 kB / 411.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001023/0.6974, allocations: 139.6 kB / 411.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002272/0.6976, allocations: 162.8 kB / 412 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.7088, allocations: 3.751 MB / 415.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03875/0.7476, allocations: 14.49 MB / 430.2 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008162/0.7558, allocations: 5.355 MB / 435.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002916/0.7588, allocations: 1.273 MB / 436.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.7694, allocations: 3.816 MB / 440.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/0.7695, allocations: 63.75 kB / 440.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.647e-06/0.7695, allocations: 0 / 440.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01355/0.7831, allocations: 5.502 MB / 446.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.816e-05/0.7832, allocations: 66.39 kB / 446.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006679/0.7899, allocations: 2.098 MB / 448.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003057/0.7903, allocations: 45.7 kB / 448.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.7922, allocations: 1.656 MB / 450.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007384/0.793, allocations: 471.7 kB / 450.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009537/0.7939, allocations: 335.2 kB / 450.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.7942, allocations: 305.1 kB / 451.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.7961, allocations: 0.7184 MB / 451.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002913/0.799, allocations: 1.348 MB / 453.3 MB, free: 8.086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/0.8043, allocations: 2.231 MB / 455.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.443e-05/0.8044, allocations: 8 kB / 455.5 MB, free: 5.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006225/0.8106, allocations: 2.521 MB / 458 MB, free: 3.016 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.879e-05/0.8107, allocations: 16 kB / 458 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-05/0.8108, allocations: 20 kB / 458 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005658/0.8114, allocations: 143 kB / 458.2 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00195/0.8134, allocations: 463.2 kB / 458.6 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004085/0.8175, allocations: 3.349 MB / 462 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/0.82, allocations: 107.9 kB / 462.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/0.8203, allocations: 92.11 kB / 462.2 MB, free: 14.56 MB / 382.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.003242/0.8235, allocations: 1.044 MB / 463.2 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/0.8247, allocations: 213.3 kB / 463.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00572/0.8304, allocations: 2.196 MB / 465.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.8305, allocations: 12 kB / 465.6 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.727e-05/0.8305, allocations: 7.938 kB / 465.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.371e-05/0.8306, allocations: 11.91 kB / 465.7 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.8456, allocations: 5.179 MB / 470.8 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/0.8456, allocations: 4 kB / 470.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.8468, allocations: 231.6 kB / 471.1 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008915/0.8477, allocations: 279.4 kB / 471.3 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.8479, allocations: 31.98 kB / 471.4 MB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009722/0.8576, allocations: 7.816 MB / 479.2 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/0.8577, allocations: 8.016 kB / 479.2 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007497/0.8652, allocations: 3.19 MB / 482.4 MB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/0.8673, allocations: 454.3 kB / 482.8 MB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/0.8684, allocations: 28 kB / 482.9 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/0.8705, allocations: 67.92 kB / 482.9 MB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003471/0.8709, allocations: 97.11 kB / 483 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.8711, allocations: 36 kB / 483.1 MB, free: 8.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004535/0.8756, allocations: 1.435 MB / 484.5 MB, free: 7.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8756, allocations: 0 / 484.5 MB, free: 7.383 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004536/0.8802, allocations: 0.5626 MB / 485.1 MB, free: 6.82 MB / 398.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.01023/0.8904, allocations: 3.806 MB / 488.9 MB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007061/0.8976, allocations: 2.577 MB / 491.4 MB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/0.8977, allocations: 3.938 kB / 491.4 MB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003066/0.9007, allocations: 1.38 MB / 492.8 MB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005094/0.9059, allocations: 0.5448 MB / 493.4 MB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06179/0.9677, allocations: 23.97 MB / 0.5052 GB, free: 4.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004417/0.9722, allocations: 2.406 MB / 0.5076 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002701/0.9749, allocations: 0.4984 MB / 0.508 GB, free: 1.289 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002608/0.9776, allocations: 1.293 MB / 0.5093 GB, free: 16 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.9776, allocations: 0 / 0.5093 GB, free: 16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4473/1.425, allocations: 52.54 MB / 0.5606 GB, free: 134.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.19/18.61, allocations: 6.625 kB / 0.5606 GB, free: 134.9 MB / 446.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