Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002453/0.002453, allocations: 51.92 kB / 365.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1439, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01116/0.1551, allocations: 9.034 MB / 426.8 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006021/0.1611, allocations: 3.166 MB / 430 MB, free: 372 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.1622, allocations: 55.69 kB / 430.1 MB, free: 316 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.1641, allocations: 0.7224 MB / 430.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002087/0.1662, allocations: 0.734 MB / 431.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007468/0.167, allocations: 323.5 kB / 431.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002613/0.1696, allocations: 2.105 MB / 433.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.171, allocations: 1.019 MB / 434.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.1723, allocations: 0.9421 MB / 435.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.1739, allocations: 1.156 MB / 437 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003044/0.1742, allocations: 228 kB / 437.3 MB, free: 9.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005557/0.1747, allocations: 323.8 kB / 437.6 MB, free: 8.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006655/0.1754, allocations: 0.6817 MB / 438.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.1765, allocations: 1.085 MB / 439.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.1798, allocations: 3.11 MB / 442.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.1798, allocations: 4 kB / 442.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1798, allocations: 0 / 442.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.171e-05/0.1798, allocations: 4 kB / 442.5 MB, free: 3.789 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.00426/0.1841, allocations: 2.314 MB / 444.8 MB, free: 1.414 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1841, allocations: 8.031 kB / 444.8 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002967/0.1844, allocations: 236.3 kB / 445 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006289/0.1851, allocations: 235.6 kB / 445.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1903/0.3753, allocations: 1.231 MB / 446.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.3754, allocations: 114.9 kB / 446.6 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002743/0.3757, allocations: 151.6 kB / 446.7 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00333/0.379, allocations: 2.004 MB / 448.7 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.3791, allocations: 9.594 kB / 448.8 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.3792, allocations: 65.09 kB / 448.8 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.456e-05/0.3793, allocations: 76.72 kB / 448.9 MB, free: 28.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.3817, allocations: 1.648 MB / 450.5 MB, free: 28.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009541/0.3912, allocations: 6.91 MB / 457.5 MB, free: 24.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.392, allocations: 425.3 kB / 457.9 MB, free: 24.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003731/0.3924, allocations: 250.3 kB / 458.1 MB, free: 24.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002/0.3926, allocations: 116 kB / 458.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3926, allocations: 38.11 kB / 458.3 MB, free: 24.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.495e-06/0.3926, allocations: 2.25 kB / 458.3 MB, free: 24.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007039/0.3996, allocations: 3.322 MB / 461.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002062/0.4017, allocations: 2.338 MB / 463.9 MB, free: 21.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.404, allocations: 1.614 MB / 465.5 MB, free: 20.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.857e-05/0.4041, allocations: 36.45 kB / 465.6 MB, free: 20.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005691/0.4046, allocations: 1.053 MB / 466.6 MB, free: 19.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.4048, allocations: 245.4 kB / 466.9 MB, free: 19.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003832/0.4052, allocations: 326.2 kB / 467.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.664e-05/0.4052, allocations: 304.2 kB / 467.5 MB, free: 19.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007408/0.406, allocations: 0.5177 MB / 468 MB, free: 18.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.407, allocations: 1.463 MB / 469.5 MB, free: 17.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.4089, allocations: 2.137 MB / 471.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/0.4089, allocations: 13.75 kB / 471.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003182/0.4121, allocations: 2.165 MB / 473.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.4122, allocations: 18.5 kB / 473.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.7e-05/0.4122, allocations: 33.53 kB / 473.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.4127, allocations: 231.6 kB / 474.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.4138, allocations: 390.9 kB / 474.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.4151, allocations: 1.861 MB / 476.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.4164, allocations: 136.1 kB / 476.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.4165, allocations: 97.39 kB / 476.5 MB, free: 12.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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.0007608/0.4173, allocations: 0.588 MB / 477.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.4175, allocations: 162.5 kB / 477.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.4192, allocations: 1.106 MB / 478.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.4192, allocations: 12.59 kB / 478.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4192, allocations: 5.438 kB / 478.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.4193, allocations: 7.641 kB / 478.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/0.4237, allocations: 3.378 MB / 481.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4237, allocations: 3.938 kB / 481.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.4241, allocations: 106.7 kB / 481.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005243/0.4246, allocations: 230 kB / 482.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.4247, allocations: 19.84 kB / 482.1 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.4274, allocations: 4.062 MB / 486.2 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001534/0.429, allocations: 2.165 MB / 488.4 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.4311, allocations: 1.75 MB / 490.1 MB, free: 2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.4315, allocations: 304 kB / 490.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.4317, allocations: 22.17 kB / 490.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000651/0.4323, allocations: 56.02 kB / 490.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.4324, allocations: 59.8 kB / 490.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.4325, allocations: 24 kB / 490.6 MB, free: 1.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.4337, allocations: 1.07 MB / 491.6 MB, free: 472 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4337, allocations: 0 / 491.6 MB, free: 472 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001549/0.4352, allocations: 387.9 kB / 492 MB, free: 84 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003073/0.4383, allocations: 2.367 MB / 494.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.441, allocations: 1.57 MB / 496 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.441, allocations: 4.062 kB / 496 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.4423, allocations: 0.8201 MB / 496.8 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.4442, allocations: 419.3 kB / 497.2 MB, free: 10.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0218/0.466, allocations: 15.28 MB / 0.5005 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.4672, allocations: 1.476 MB / 0.5019 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009873/0.4682, allocations: 348.8 kB / 0.5022 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/0.4691, allocations: 0.6203 MB / 0.5028 GB, free: 7.77 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4691, allocations: 0 / 0.5028 GB, free: 7.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08363/0.5527, allocations: 36.57 MB / 0.5385 GB, free: 3.609 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/15.3, allocations: 6.688 kB / 0.5386 GB, free: 3.605 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.04 --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_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable constantSpeed.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.906496123876423]