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.001693/0.001693, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 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.001568/0.001568, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9928/0.9928, allocations: 173.4 MB / 201.2 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.265e-05/3.459e-05, allocations: 2.312 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009171/0.009205, allocations: 8.972 MB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004152/0.01336, allocations: 3.089 MB / 280.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004512/0.01381, allocations: 55.62 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.01486, allocations: 0.656 MB / 280.8 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.01603, allocations: 0.7762 MB / 281.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.01644, allocations: 331.4 kB / 281.9 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.01803, allocations: 2.171 MB / 284 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007686/0.0188, allocations: 0.8048 MB / 284.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009743/0.01978, allocations: 1.368 MB / 286.2 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009168/0.02069, allocations: 1.037 MB / 287.3 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.02089, allocations: 228 kB / 287.5 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.02126, allocations: 315.8 kB / 287.8 MB, free: 2.527 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.02169, allocations: 0.7206 MB / 288.5 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005219/0.02221, allocations: 0.756 MB / 289.3 MB, free: 1.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1467/0.1689, allocations: 1.696 MB / 291 MB, free: 20.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1689, allocations: 0.75 kB / 291 MB, free: 20.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1689, allocations: 0 / 291 MB, free: 20.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.923e-05/0.169, allocations: 0 / 291 MB, free: 20.25 MB / 266.7 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.003831/0.1729, allocations: 2.389 MB / 293.3 MB, free: 19.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1729, allocations: 9.188 kB / 293.4 MB, free: 19.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000838/0.1738, allocations: 372.8 kB / 293.7 MB, free: 19.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.1753, allocations: 1.123 MB / 294.8 MB, free: 18.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-05/0.1754, allocations: 115.1 kB / 295 MB, free: 18.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.1757, allocations: 154.7 kB / 295.1 MB, free: 18.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.1778, allocations: 1.276 MB / 296.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.808e-05/0.1778, allocations: 11.61 kB / 296.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.1779, allocations: 64.41 kB / 296.5 MB, free: 18.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.782e-05/0.178, allocations: 80.61 kB / 296.5 MB, free: 18.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.1793, allocations: 0.5915 MB / 297.1 MB, free: 18.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005818/0.1852, allocations: 6.12 MB / 303.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.1855, allocations: 234.7 kB / 303.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.1857, allocations: 110.4 kB / 303.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.1858, allocations: 38.53 kB / 303.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.1859, allocations: 42.02 kB / 303.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.623e-06/0.1859, allocations: 4 kB / 303.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.003359/0.1892, allocations: 2.092 MB / 305.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001082/0.1903, allocations: 2.49 MB / 308.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.1914, allocations: 1.394 MB / 309.6 MB, free: 11.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1914, allocations: 37.27 kB / 309.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003673/0.1918, allocations: 1.14 MB / 310.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.1919, allocations: 251.3 kB / 311.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.1921, allocations: 337.4 kB / 311.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.175e-05/0.1922, allocations: 476.8 kB / 311.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.1924, allocations: 189 kB / 312 MB, free: 9.449 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006489/0.1931, allocations: 1.563 MB / 313.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.1942, allocations: 1.932 MB / 315.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.1942, allocations: 11.75 kB / 315.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001569/0.1958, allocations: 1.52 MB / 317.1 MB, free: 5.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1958, allocations: 19.72 kB / 317.1 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.1958, allocations: 37.28 kB / 317.1 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.1961, allocations: 139.8 kB / 317.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005698/0.1966, allocations: 393.4 kB / 317.6 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006524/0.1973, allocations: 1.923 MB / 319.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005572/0.1978, allocations: 146.6 kB / 319.7 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/0.1979, allocations: 90.84 kB / 319.8 MB, free: 3.164 MB / 266.7 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.0002483/0.1982, allocations: 286.9 kB / 320.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.1983, allocations: 175 kB / 320.3 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007202/0.199, allocations: 0.6401 MB / 320.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.199, allocations: 4 kB / 320.9 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.199, allocations: 0 / 320.9 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.199, allocations: 11.92 kB / 320.9 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.2016, allocations: 2.657 MB / 323.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.2016, allocations: 8.656 kB / 323.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.2019, allocations: 111.2 kB / 323.7 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003331/0.2022, allocations: 154.9 kB / 323.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.2022, allocations: 17 kB / 323.8 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/0.2046, allocations: 4.205 MB / 328.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001244/0.2058, allocations: 2.414 MB / 330.5 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.207, allocations: 1.107 MB / 331.6 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.2072, allocations: 219 kB / 331.8 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.435e-05/0.2073, allocations: 19.94 kB / 331.8 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.2076, allocations: 51.97 kB / 331.9 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.2077, allocations: 70.39 kB / 331.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.2078, allocations: 24 kB / 331.9 MB, free: 6.48 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007528/0.2085, allocations: 0.7466 MB / 332.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2085, allocations: 0 / 332.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001046/0.2096, allocations: 380 kB / 333.1 MB, free: 5.363 MB / 282.7 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.0002403/0.2098, allocations: 177.1 kB / 333.2 MB, free: 5.188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.211, allocations: 1.039 MB / 334.3 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.211, allocations: 0 / 334.3 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.2117, allocations: 0.6995 MB / 335 MB, free: 3.426 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009851/0.2127, allocations: 369.4 kB / 335.3 MB, free: 3.074 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.2158, allocations: 2.9 MB / 338.2 MB, free: 32 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005684/0.2164, allocations: 414 kB / 338.6 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004967/0.2169, allocations: 284.9 kB / 338.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.2171, allocations: 104.5 kB / 339 MB, free: 15.21 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2171, allocations: 4 kB / 339 MB, free: 15.21 MB / 298.7 MB Notification: Performance of Templates: time 0.02522/0.2423, allocations: 19.6 MB / 358.6 MB, free: 11.96 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.246396895032376]