Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001034/0.001034, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2316, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.0102/0.2419, allocations: 9.103 MB / 417.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006013/0.2479, allocations: 3.174 MB / 421 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.2494, allocations: 47.75 kB / 421.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.2513, allocations: 0.7213 MB / 421.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002259/0.2536, allocations: 0.7613 MB / 422.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007406/0.2544, allocations: 319.4 kB / 422.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.2567, allocations: 2.14 MB / 425 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.2583, allocations: 1.418 MB / 426.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.2596, allocations: 0.9343 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.261, allocations: 1.14 MB / 428.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000307/0.2613, allocations: 235.9 kB / 428.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005986/0.2619, allocations: 331.9 kB / 429.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006512/0.2626, allocations: 0.6739 MB / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.2637, allocations: 1.097 MB / 430.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.2668, allocations: 3.149 MB / 434 MB, free: 8.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2668, allocations: 4 kB / 434 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2669, allocations: 4 kB / 434 MB, free: 8.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-05/0.2669, allocations: 0 / 434 MB, free: 8.141 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004378/0.2713, allocations: 2.353 MB / 436.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2714, allocations: 12.03 kB / 436.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002838/0.2716, allocations: 228.4 kB / 436.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006733/0.2723, allocations: 247.5 kB / 436.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/0.2745, allocations: 1.248 MB / 438.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.094e-05/0.2746, allocations: 119.2 kB / 438.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002368/0.2748, allocations: 160 kB / 438.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003172/0.278, allocations: 2.025 MB / 440.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.002e-05/0.2781, allocations: 7.953 kB / 440.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.2783, allocations: 68 kB / 440.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.313e-05/0.2784, allocations: 78.92 kB / 440.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002701/0.2811, allocations: 1.682 MB / 442.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009523/0.2906, allocations: 7.055 MB / 449.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008701/0.2915, allocations: 480.9 kB / 449.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.292, allocations: 278 kB / 450 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002095/0.2922, allocations: 117.5 kB / 450.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.2922, allocations: 42.98 kB / 450.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.475e-06/0.2922, allocations: 0 / 450.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006829/0.2991, allocations: 3.06 MB / 453.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.2991, allocations: 55.97 kB / 453.3 MB, free: 4.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.3013, allocations: 1.632 MB / 454.9 MB, free: 2.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.3014, allocations: 37.7 kB / 454.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006938/0.3021, allocations: 1.072 MB / 456 MB, free: 1.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.3023, allocations: 242 kB / 456.3 MB, free: 1.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003971/0.3027, allocations: 327.3 kB / 456.6 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.3028, allocations: 301.1 kB / 456.9 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008523/0.3036, allocations: 0.5192 MB / 457.4 MB, free: 76 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.3051, allocations: 1.462 MB / 458.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.3077, allocations: 2.134 MB / 461 MB, free: 11.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.3078, allocations: 12 kB / 461 MB, free: 11.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003706/0.3115, allocations: 2.169 MB / 463.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.3115, allocations: 20 kB / 463.2 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.3116, allocations: 32 kB / 463.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005605/0.3121, allocations: 222.8 kB / 463.4 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.3133, allocations: 411.2 kB / 463.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.315, allocations: 1.84 MB / 465.7 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.3164, allocations: 147.6 kB / 465.8 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.3165, allocations: 92 kB / 465.9 MB, free: 6.465 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008286/0.3174, allocations: 0.5983 MB / 466.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.3176, allocations: 159 kB / 466.7 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.3196, allocations: 1.09 MB / 467.8 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3196, allocations: 8 kB / 467.8 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3196, allocations: 0 / 467.8 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3196, allocations: 8.062 kB / 467.8 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004455/0.3241, allocations: 2.756 MB / 470.5 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3241, allocations: 4 kB / 470.5 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/0.3246, allocations: 127.9 kB / 470.7 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004236/0.3251, allocations: 158.4 kB / 470.8 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.3251, allocations: 15.98 kB / 470.8 MB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.3266, allocations: 1.785 MB / 472.6 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3267, allocations: 12.03 kB / 472.6 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.3292, allocations: 1.636 MB / 474.3 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006051/0.3298, allocations: 312 kB / 474.6 MB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.33, allocations: 12 kB / 474.6 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006836/0.3307, allocations: 52 kB / 474.6 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3308, allocations: 48.44 kB / 474.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.3308, allocations: 20 kB / 474.7 MB, free: 13.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00155/0.3324, allocations: 1.079 MB / 475.8 MB, free: 12.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3324, allocations: 3.938 kB / 475.8 MB, free: 12.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001421/0.3338, allocations: 364 kB / 476.1 MB, free: 11.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.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 (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,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.003038/0.3369, allocations: 2.259 MB / 478.4 MB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.3395, allocations: 1.618 MB / 480 MB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3395, allocations: 0 / 480 MB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.3406, allocations: 0.7636 MB / 480.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.3425, allocations: 421.6 kB / 481.2 MB, free: 6.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02005/0.3625, allocations: 14.99 MB / 496.2 MB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.3637, allocations: 1.469 MB / 497.6 MB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009627/0.3646, allocations: 350 kB / 498 MB, free: 4.762 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008158/0.3655, allocations: 0.6438 MB / 498.6 MB, free: 4.121 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3655, allocations: 0 / 498.6 MB, free: 4.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07081/0.4363, allocations: 35.52 MB / 0.5216 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.14, allocations: 0 / 0.5216 GB, free: 0.9805 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.32 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches