Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.001125/0.001125, allocations: 114.2 kB / 17.06 MB, free: 5.965 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.001184/0.001184, allocations: 198.8 kB / 18.01 MB, free: 5.043 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 47.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2477, allocations: 49.45 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01205/0.2598, allocations: 10.91 MB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007077/0.2669, allocations: 3.614 MB / 414.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.2689, allocations: 67.69 kB / 414.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.2716, allocations: 0.8765 MB / 415.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003577/0.2753, allocations: 0.9009 MB / 416.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.2767, allocations: 459.3 kB / 417.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004364/0.2811, allocations: 2.941 MB / 420 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004229/0.2853, allocations: 2.731 MB / 422.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002232/0.2876, allocations: 1.382 MB / 424.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002849/0.2905, allocations: 1.752 MB / 425.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009188/0.2914, allocations: 372 kB / 426.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.2928, allocations: 475.7 kB / 426.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.2942, allocations: 1.075 MB / 427.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002561/0.2968, allocations: 1.668 MB / 429.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005439/0.3023, allocations: 4.9 MB / 434.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3023, allocations: 0 / 434.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3023, allocations: 0 / 434.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001297/0.3025, allocations: 0 / 434.3 MB, free: 6.535 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007033/0.3095, allocations: 3.477 MB / 437.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3096, allocations: 12.03 kB / 437.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004511/0.31, allocations: 363 kB / 438.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000786/0.3108, allocations: 354.8 kB / 438.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003391/0.3142, allocations: 1.832 MB / 440.4 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.3144, allocations: 193.1 kB / 440.6 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.3148, allocations: 248 kB / 440.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005643/0.3205, allocations: 3.279 MB / 444.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.853e-05/0.3206, allocations: 8 kB / 444.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.3208, allocations: 104 kB / 444.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.321, allocations: 124.9 kB / 444.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00455/0.3255, allocations: 2.756 MB / 447.1 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01575/0.3413, allocations: 10.41 MB / 457.5 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.3432, allocations: 1.363 MB / 458.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/0.3443, allocations: 0.7658 MB / 459.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002796/0.3446, allocations: 199.2 kB / 459.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3447, allocations: 43.55 kB / 459.8 MB, free: 12.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.795e-06/0.3447, allocations: 0 / 459.8 MB, free: 12.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01445/0.3591, allocations: 6.945 MB / 466.8 MB, free: 5.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.3592, allocations: 64.41 kB / 466.9 MB, free: 5.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/0.3617, allocations: 1.79 MB / 468.6 MB, free: 3.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.3618, allocations: 49.69 kB / 468.7 MB, free: 3.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008217/0.3626, allocations: 1.302 MB / 470 MB, free: 2.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/0.363, allocations: 456.1 kB / 470.4 MB, free: 1.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004434/0.3634, allocations: 295.4 kB / 470.7 MB, free: 1.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.3635, allocations: 313.1 kB / 471 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.3646, allocations: 0.7768 MB / 471.8 MB, free: 208 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.3661, allocations: 1.296 MB / 473.1 MB, free: 14.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.3688, allocations: 2.206 MB / 475.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.3688, allocations: 8 kB / 475.3 MB, free: 12.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004097/0.3729, allocations: 2.479 MB / 477.8 MB, free: 9.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.3729, allocations: 12.66 kB / 477.8 MB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/0.373, allocations: 20 kB / 477.8 MB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006313/0.3736, allocations: 247.2 kB / 478.1 MB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/0.3751, allocations: 411.3 kB / 478.5 MB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002667/0.3778, allocations: 3.242 MB / 481.7 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.3793, allocations: 127.8 kB / 481.8 MB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.3795, allocations: 71.94 kB / 481.9 MB, free: 5.324 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001537/0.381, allocations: 0.8176 MB / 482.7 MB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005493/0.3816, allocations: 198.7 kB / 482.9 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/0.3851, allocations: 2.039 MB / 485 MB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.3851, allocations: 12 kB / 485 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3851, allocations: 3.984 kB / 485 MB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.3851, allocations: 3.984 kB / 485 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00832/0.3935, allocations: 4.753 MB / 489.7 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.3935, allocations: 4 kB / 489.7 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.3946, allocations: 259.6 kB / 490 MB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005339/0.3952, allocations: 199.5 kB / 490.2 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.115e-05/0.3953, allocations: 27.98 kB / 490.2 MB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/0.3978, allocations: 3.218 MB / 493.4 MB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.3978, allocations: 11.88 kB / 493.4 MB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004607/0.4024, allocations: 3.14 MB / 496.6 MB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4036, allocations: 435.7 kB / 497 MB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/0.404, allocations: 27.94 kB / 497 MB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.4052, allocations: 99.92 kB / 497.1 MB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.4054, allocations: 76.89 kB / 497.2 MB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.4055, allocations: 32 kB / 497.2 MB, free: 5.496 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.4076, allocations: 1.224 MB / 498.5 MB, free: 4.281 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4076, allocations: 0 / 498.5 MB, free: 4.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002008/0.4097, allocations: 487.9 kB / 498.9 MB, free: 3.805 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00536/0.415, allocations: 3.792 MB / 0.4909 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.4188, allocations: 2.354 MB / 0.4932 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4189, allocations: 0 / 0.4932 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.4208, allocations: 1.343 MB / 0.4946 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/0.4239, allocations: 493 kB / 0.495 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03021/0.4541, allocations: 18.78 MB / 0.5134 GB, free: 8.109 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/0.4563, allocations: 2.006 MB / 0.5153 GB, free: 6.066 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001408/0.4577, allocations: 0.4921 MB / 0.5158 GB, free: 5.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.4591, allocations: 1.011 MB / 0.5168 GB, free: 4.559 MB / 446.1 MB Notification: Performance of SimCode: time 2.795e-06/0.4592, allocations: 0 / 0.5168 GB, free: 4.559 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2638/0.7229, allocations: 45.97 MB / 0.5617 GB, free: 119 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.09, allocations: 0 / 0.5617 GB, free: 119 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_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_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches