Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.0007555/0.0007555, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001114/0.001869, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007641/0.0007641, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009864/0.00175, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9793/0.9793, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09139/1.071, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.783e-05/1.968e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01191/0.01193, allocations: 15.21 MB / 259.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009097/0.02103, allocations: 5.488 MB / 265.4 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.02335, allocations: 127.2 kB / 265.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.02552, allocations: 1.11 MB / 266.7 MB, free: 8.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002828/0.02835, allocations: 1.316 MB / 268 MB, free: 6.848 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.02977, allocations: 0.9075 MB / 268.9 MB, free: 5.938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005606/0.03537, allocations: 3.809 MB / 272.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001762/0.03713, allocations: 1.893 MB / 274.6 MB, free: 132 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1202/0.1574, allocations: 3.226 MB / 277.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003165/0.1605, allocations: 1.777 MB / 279.6 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001321/0.1619, allocations: 467.7 kB / 280 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.1637, allocations: 0.6938 MB / 280.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008884/0.1646, allocations: 0.9239 MB / 281.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.1665, allocations: 1.131 MB / 282.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004436/0.171, allocations: 3.109 MB / 285.9 MB, free: 3.105 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-05/0.171, allocations: 4.875 kB / 285.9 MB, free: 3.105 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.171, allocations: 0 / 285.9 MB, free: 3.105 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001905/0.1712, allocations: 0 / 285.9 MB, free: 3.105 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.007041/0.1782, allocations: 4.848 MB / 290.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.1782, allocations: 15.47 kB / 290.8 MB, free: 1.438 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001698/0.1799, allocations: 0.8449 MB / 291.6 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.1819, allocations: 1.49 MB / 293.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.701e-05/0.182, allocations: 237.3 kB / 293.3 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002835/0.1823, allocations: 312.6 kB / 293.6 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/0.1847, allocations: 2.297 MB / 295.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.211e-05/0.1847, allocations: 12.06 kB / 296 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.1849, allocations: 134.8 kB / 296.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.774e-05/0.185, allocations: 146 kB / 296.2 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1865, allocations: 0.9451 MB / 297.2 MB, free: 232 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009462/0.1959, allocations: 8.639 MB / 305.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.1977, allocations: 1.101 MB / 306.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006197/0.1983, allocations: 407.5 kB / 307.3 MB, free: 7.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001673/0.1985, allocations: 61.27 kB / 307.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.1985, allocations: 51.88 kB / 307.4 MB, free: 7.184 MB / 282.7 MB Notification: Performance of pre-optimization done (n=134): time 3.977e-06/0.1985, allocations: 0 / 307.4 MB, free: 7.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=170): time 0.008245/0.2068, allocations: 3.666 MB / 311.1 MB, free: 3.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.2068, allocations: 69.41 kB / 311.2 MB, free: 3.484 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.208, allocations: 1.247 MB / 312.4 MB, free: 2.477 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.2081, allocations: 57.7 kB / 312.5 MB, free: 2.414 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006621/0.2088, allocations: 1.289 MB / 313.7 MB, free: 1.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003971/0.2092, allocations: 0.5957 MB / 314.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000407/0.2096, allocations: 349 kB / 314.7 MB, free: 320 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.369e-05/0.2097, allocations: 301.1 kB / 315 MB, free: 16 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.2101, allocations: 234.3 kB / 315.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006932/0.2108, allocations: 0.8369 MB / 316 MB, free: 14.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.2122, allocations: 1.346 MB / 317.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/0.2122, allocations: 7.938 kB / 317.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.001733/0.2139, allocations: 1.195 MB / 318.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.2139, allocations: 17.56 kB / 318.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.214, allocations: 19.38 kB / 318.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002214/0.2142, allocations: 86.5 kB / 318.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.2157, allocations: 0.5663 MB / 319.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007686/0.2165, allocations: 1.2 MB / 320.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008841/0.2174, allocations: 80.02 kB / 320.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.2175, allocations: 71.98 kB / 320.6 MB, free: 10.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (256): * Single equations (assignments): 253 * 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.0007608/0.2183, allocations: 240.6 kB / 320.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002574/0.2185, allocations: 175.8 kB / 321 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.2199, allocations: 0.8906 MB / 321.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.2199, allocations: 16 kB / 321.9 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2199, allocations: 11.94 kB / 322 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.2199, allocations: 7.969 kB / 322 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004082/0.224, allocations: 2.659 MB / 324.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.224, allocations: 4 kB / 324.6 MB, free: 6.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.2251, allocations: 381.5 kB / 325 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004665/0.2256, allocations: 229.1 kB / 325.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.2257, allocations: 70.45 kB / 325.3 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.825e-05/0.2258, allocations: 28 kB / 325.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006254/0.2264, allocations: 1.167 MB / 326.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.2264, allocations: 11.56 kB / 326.5 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.2281, allocations: 1.318 MB / 327.8 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.2283, allocations: 36.16 kB / 327.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.2288, allocations: 43.98 kB / 327.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.2289, allocations: 113 kB / 328 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-05/0.229, allocations: 28 kB / 328 MB, free: 2.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006606/0.2297, allocations: 0.6169 MB / 328.6 MB, free: 2.227 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2297, allocations: 0 / 328.6 MB, free: 2.227 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001446/0.2311, allocations: 0.5429 MB / 329.2 MB, free: 1.684 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (169): * Single equations (assignments): 166 * 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.0003102/0.2314, allocations: 164.9 kB / 329.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.2329, allocations: 1.066 MB / 330.4 MB, free: 0.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-05/0.233, allocations: 36.44 kB / 330.4 MB, free: 476 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008318/0.2338, allocations: 0.6552 MB / 331.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.2368, allocations: 4.678 MB / 335.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/0.2606, allocations: 5.093 MB / 340.9 MB, free: 5.117 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006365/0.2612, allocations: 0.632 MB / 341.5 MB, free: 4.465 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001044/0.2623, allocations: 297.5 kB / 341.8 MB, free: 4.172 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008344/0.2631, allocations: 0.4991 MB / 342.3 MB, free: 3.664 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.2631, allocations: 4 kB / 342.3 MB, free: 3.66 MB / 314.7 MB Notification: Performance of Templates: time 0.03875/0.3019, allocations: 27.84 MB / 370.1 MB, free: 8.32 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2123661087825894]