Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 174.2 kB / 25.33 MB, free: 9.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8437/0.8437, allocations: 158.6 MB / 187.2 MB, free: 2.527 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.684e-05, allocations: 10.25 kB / 251.1 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01278/0.01281, allocations: 14.87 MB / 266 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008247/0.02105, allocations: 5.054 MB / 271 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.02207, allocations: 107.3 kB / 271.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.02365, allocations: 1.06 MB / 272.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.02547, allocations: 1.296 MB / 273.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.02657, allocations: 0.9039 MB / 274.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002772/0.02934, allocations: 3.782 MB / 278.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.03094, allocations: 1.806 MB / 280 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.03341, allocations: 2.987 MB / 282.9 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.03501, allocations: 1.765 MB / 284.7 MB, free: 1.719 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.03538, allocations: 464 kB / 285.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007033/0.03608, allocations: 0.6519 MB / 285.8 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.03668, allocations: 1.149 MB / 287 MB, free: 15.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008499/0.03753, allocations: 1.349 MB / 288.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002236/0.03977, allocations: 3.267 MB / 291.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.03977, allocations: 0 / 291.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.03977, allocations: 0 / 291.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.03979, allocations: 0 / 291.6 MB, free: 10.83 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.004807/0.0446, allocations: 4.383 MB / 296 MB, free: 6.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.04463, allocations: 11.98 kB / 296 MB, free: 6.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.04631, allocations: 0.9822 MB / 297 MB, free: 5.383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.04822, allocations: 2.006 MB / 299 MB, free: 3.328 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.04854, allocations: 238.7 kB / 299.2 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/0.0488, allocations: 312.3 kB / 299.5 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/0.05169, allocations: 2.451 MB / 302 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.958e-05/0.05174, allocations: 7.938 kB / 302 MB, free: 244 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.05191, allocations: 124 kB / 302.1 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1063/0.1582, allocations: 151.3 kB / 302.2 MB, free: 36.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003519/0.1617, allocations: 1.172 MB / 303.4 MB, free: 36.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/0.1724, allocations: 10.77 MB / 314.2 MB, free: 33.44 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.1741, allocations: 1.188 MB / 315.4 MB, free: 33.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006429/0.1747, allocations: 496 kB / 315.8 MB, free: 33.11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001756/0.1765, allocations: 1.663 MB / 317.5 MB, free: 32.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.1765, allocations: 53.05 kB / 317.6 MB, free: 32.09 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.094e-06/0.1765, allocations: 0 / 317.6 MB, free: 32.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004576/0.1811, allocations: 3.675 MB / 321.2 MB, free: 30.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.1811, allocations: 68.94 kB / 321.3 MB, free: 30.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.1822, allocations: 1.505 MB / 322.8 MB, free: 30.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.1822, allocations: 48.61 kB / 322.9 MB, free: 29.97 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.1828, allocations: 1.652 MB / 324.5 MB, free: 28.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.183, allocations: 0.5079 MB / 325 MB, free: 28.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.1832, allocations: 348 kB / 325.4 MB, free: 28.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.814e-05/0.1833, allocations: 479.8 kB / 325.8 MB, free: 27.8 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/0.1837, allocations: 276.6 kB / 326.1 MB, free: 27.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006151/0.1843, allocations: 1.166 MB / 327.3 MB, free: 26.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.1854, allocations: 1.576 MB / 328.8 MB, free: 25.29 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1854, allocations: 5.375 kB / 328.8 MB, free: 25.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001564/0.187, allocations: 1.564 MB / 330.4 MB, free: 24.83 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.187, allocations: 11.66 kB / 330.4 MB, free: 24.83 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.187, allocations: 20.31 kB / 330.4 MB, free: 24.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.1872, allocations: 95.55 kB / 330.5 MB, free: 24.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008677/0.1881, allocations: 482.3 kB / 331 MB, free: 24.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005274/0.1886, allocations: 1.761 MB / 332.8 MB, free: 23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.1891, allocations: 94.56 kB / 332.9 MB, free: 22.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.446e-05/0.1892, allocations: 83.47 kB / 332.9 MB, free: 22.85 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (231): * Single equations (assignments): 228 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003729/0.1896, allocations: 277.5 kB / 333.2 MB, free: 22.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.1898, allocations: 238.7 kB / 333.4 MB, free: 22.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.1909, allocations: 1.078 MB / 334.5 MB, free: 21.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1909, allocations: 16 kB / 334.5 MB, free: 21.4 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1909, allocations: 3.938 kB / 334.5 MB, free: 21.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1909, allocations: 7.969 kB / 334.5 MB, free: 21.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.1941, allocations: 3.367 MB / 337.9 MB, free: 17.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1941, allocations: 4 kB / 337.9 MB, free: 17.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.1947, allocations: 298.9 kB / 338.2 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000139/0.1948, allocations: 70.95 kB / 338.3 MB, free: 17.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.074e-05/0.1949, allocations: 35.98 kB / 338.3 MB, free: 17.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003763/0.1953, allocations: 1.735 MB / 340 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1953, allocations: 3.656 kB / 340 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.1967, allocations: 1.562 MB / 341.6 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/0.1971, allocations: 334.5 kB / 341.9 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.1972, allocations: 28 kB / 342 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.1976, allocations: 51.95 kB / 342 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.1977, allocations: 101 kB / 342.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.1977, allocations: 36 kB / 342.2 MB, free: 13.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006534/0.1984, allocations: 0.8393 MB / 343 MB, free: 12.74 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1984, allocations: 0 / 343 MB, free: 12.74 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009279/0.1993, allocations: 0.5117 MB / 343.5 MB, free: 12.23 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (140): * Single equations (assignments): 137 * 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 {(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.0002576/0.1996, allocations: 165.9 kB / 343.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.2008, allocations: 1.216 MB / 344.9 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2008, allocations: 4.062 kB / 344.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000539/0.2014, allocations: 0.654 MB / 345.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.2024, allocations: 471.4 kB / 346 MB, free: 9.793 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004658/0.2071, allocations: 4.902 MB / 350.9 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.2075, allocations: 0.7463 MB / 351.6 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000691/0.2082, allocations: 416.4 kB / 352.1 MB, free: 3.629 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.2084, allocations: 140.5 kB / 352.2 MB, free: 3.492 MB / 282.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2084, allocations: 0 / 352.2 MB, free: 3.492 MB / 282.7 MB Notification: Performance of Templates: time 0.03248/0.2409, allocations: 24.15 MB / 376.3 MB, free: 11.41 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.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.252290372736752]