Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001276/0.001276, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001554/0.001554, allocations: 139.5 kB / 24.97 MB, free: 8.359 MB / 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.9665/0.9665, allocations: 173.4 MB / 201.5 MB, free: 9.316 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.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.0.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.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 3.938 kB / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.634e-05, allocations: 2.312 kB / 268.1 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01187/0.0119, allocations: 14.91 MB / 283 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006969/0.01887, allocations: 4.999 MB / 288 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.02003, allocations: 123.2 kB / 288.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.02186, allocations: 1.067 MB / 289.2 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.02367, allocations: 1.339 MB / 290.5 MB, free: 148 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1062/0.1299, allocations: 0.875 MB / 291.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003958/0.1338, allocations: 3.763 MB / 295.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002335/0.1362, allocations: 1.847 MB / 297 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003095/0.1393, allocations: 2.628 MB / 299.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.1415, allocations: 1.896 MB / 301.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006196/0.1421, allocations: 477.2 kB / 302 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009572/0.143, allocations: 0.6676 MB / 302.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005935/0.1436, allocations: 1.201 MB / 303.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1447, allocations: 1.387 MB / 305.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002464/0.1471, allocations: 3.333 MB / 308.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1471, allocations: 0 / 308.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1471, allocations: 1.594 kB / 308.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.412e-05/0.1472, allocations: 0 / 308.6 MB, free: 10.96 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.004698/0.1519, allocations: 4.471 MB / 313.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.1519, allocations: 15.11 kB / 313.1 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.1537, allocations: 0.9811 MB / 314.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.1556, allocations: 2.115 MB / 316.2 MB, free: 6.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.361e-05/0.1557, allocations: 234.7 kB / 316.4 MB, free: 5.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002442/0.1559, allocations: 319 kB / 316.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/0.1587, allocations: 2.451 MB / 319.2 MB, free: 3.059 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/0.1588, allocations: 15.94 kB / 319.2 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001799/0.159, allocations: 127.9 kB / 319.3 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.19e-05/0.159, allocations: 150.2 kB / 319.5 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.161, allocations: 1.189 MB / 320.7 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009804/0.1708, allocations: 10.92 MB / 331.6 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.1726, allocations: 1.182 MB / 332.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.1733, allocations: 0.4912 MB / 333.3 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002017/0.1753, allocations: 1.721 MB / 335 MB, free: 3.199 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.1753, allocations: 53.95 kB / 335 MB, free: 3.141 MB / 282.7 MB Notification: Performance of pre-optimization done (n=108): time 2.013e-06/0.1753, allocations: 0 / 335 MB, free: 3.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=142): time 0.005449/0.1808, allocations: 3.747 MB / 338.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.1808, allocations: 64.72 kB / 338.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.1824, allocations: 1.534 MB / 340.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.169e-05/0.1825, allocations: 45.7 kB / 340.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008039/0.1833, allocations: 1.656 MB / 342.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.1836, allocations: 0.5213 MB / 342.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000349/0.184, allocations: 345.1 kB / 342.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1841, allocations: 480.7 kB / 343.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/0.1845, allocations: 279.8 kB / 343.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008642/0.1854, allocations: 1.17 MB / 344.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.187, allocations: 1.583 MB / 346.4 MB, free: 7.023 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.187, allocations: 4 kB / 346.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001898/0.1889, allocations: 1.577 MB / 348 MB, free: 5.547 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1889, allocations: 16.62 kB / 348 MB, free: 5.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.1889, allocations: 16 kB / 348 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/0.1891, allocations: 101.4 kB / 348.1 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009506/0.1901, allocations: 486 kB / 348.6 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007627/0.1908, allocations: 1.764 MB / 350.4 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.1915, allocations: 111.8 kB / 350.5 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.1916, allocations: 92.11 kB / 350.6 MB, free: 2.891 MB / 298.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 (232): * Single equations (assignments): 229 * 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.0005462/0.1921, allocations: 277.3 kB / 350.8 MB, free: 2.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.1923, allocations: 234.8 kB / 351.1 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.1938, allocations: 1.105 MB / 352.2 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.1938, allocations: 16 kB / 352.2 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1938, allocations: 0 / 352.2 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.1938, allocations: 7.969 kB / 352.2 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/0.1977, allocations: 3.419 MB / 355.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.1977, allocations: 7.984 kB / 355.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006938/0.1984, allocations: 305.2 kB / 355.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.1986, allocations: 81.84 kB / 356 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.1986, allocations: 28 kB / 356 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006078/0.1992, allocations: 1.74 MB / 357.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1992, allocations: 0 / 357.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.2011, allocations: 1.582 MB / 359.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.2015, allocations: 354.6 kB / 359.7 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.2017, allocations: 28 kB / 359.7 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.2021, allocations: 75.91 kB / 359.8 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.2023, allocations: 99.97 kB / 359.9 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.2023, allocations: 36 kB / 359.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009395/0.2033, allocations: 0.8707 MB / 360.8 MB, free: 8.445 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2033, allocations: 0 / 360.8 MB, free: 8.445 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001054/0.2043, allocations: 0.5312 MB / 361.3 MB, free: 7.914 MB / 314.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 (141): * Single equations (assignments): 138 * 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.0002498/0.2046, allocations: 173.4 kB / 361.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.2061, allocations: 1.215 MB / 362.7 MB, free: 6.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2061, allocations: 4.062 kB / 362.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007067/0.2068, allocations: 0.6635 MB / 363.4 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.208, allocations: 0.4932 MB / 363.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005446/0.2134, allocations: 4.915 MB / 368.8 MB, free: 456 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.214, allocations: 0.7582 MB / 369.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001052/0.215, allocations: 420.4 kB / 370 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.2154, allocations: 140.5 kB / 370.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2154, allocations: 0 / 370.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of Templates: time 0.05153/0.2669, allocations: 24.41 MB / 394.5 MB, free: 7.133 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/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.2583438989240676]