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.0009491/0.0009491, allocations: 82.97 kB / 21.43 MB, free: 3.074 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.0009068/0.0009068, allocations: 150.9 kB / 24.81 MB, free: 9.23 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.9046/0.9046, allocations: 173.4 MB / 201.4 MB, free: 9.203 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.673e-06/1.673e-06, allocations: 0 / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.749e-06/1.142e-05, allocations: 2.312 kB / 268.4 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01121/0.01123, allocations: 14.47 MB / 282.9 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0077/0.01893, allocations: 4.975 MB / 287.9 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.02021, allocations: 123.2 kB / 288 MB, free: 2.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.0221, allocations: 1.063 MB / 289.1 MB, free: 1.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002194/0.0243, allocations: 1.347 MB / 290.4 MB, free: 92 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1005/0.1248, allocations: 0.859 MB / 291.3 MB, free: 16.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003878/0.1287, allocations: 3.762 MB / 295 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002206/0.1309, allocations: 1.851 MB / 296.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003638/0.1346, allocations: 3.003 MB / 299.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00222/0.1368, allocations: 1.775 MB / 301.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009605/0.1377, allocations: 467 kB / 302.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001295/0.139, allocations: 0.6506 MB / 302.8 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006641/0.1397, allocations: 1.145 MB / 303.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.1409, allocations: 1.354 MB / 305.3 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002834/0.1437, allocations: 3.27 MB / 308.5 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1437, allocations: 4 kB / 308.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1437, allocations: 3.969 kB / 308.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001054/0.1438, allocations: 3.938 kB / 308.5 MB, free: 11.32 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.004326/0.1481, allocations: 4.298 MB / 312.8 MB, free: 8.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.1482, allocations: 10.61 kB / 312.8 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001485/0.1497, allocations: 0.9409 MB / 313.8 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.1513, allocations: 2.085 MB / 315.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.692e-05/0.1514, allocations: 238.7 kB / 316.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002433/0.1517, allocations: 315.4 kB / 316.4 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.1537, allocations: 2.245 MB / 318.7 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.744e-05/0.1537, allocations: 10.22 kB / 318.7 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/0.1539, allocations: 132.5 kB / 318.8 MB, free: 3.543 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.436e-05/0.154, allocations: 142.2 kB / 318.9 MB, free: 3.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1551, allocations: 0.9377 MB / 319.9 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009071/0.1642, allocations: 10.69 MB / 330.6 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.1655, allocations: 1.118 MB / 331.7 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005013/0.166, allocations: 436.2 kB / 332.1 MB, free: 6.645 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001775/0.1678, allocations: 1.598 MB / 333.7 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.1678, allocations: 50.39 kB / 333.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 1.923e-06/0.1678, allocations: 4 kB / 333.8 MB, free: 5.012 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004056/0.1718, allocations: 3.039 MB / 336.8 MB, free: 1.996 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.1719, allocations: 68.72 kB / 336.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.173, allocations: 1.471 MB / 338.3 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.173, allocations: 45.7 kB / 338.4 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007542/0.1738, allocations: 1.675 MB / 340.1 MB, free: 15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002627/0.1741, allocations: 0.5177 MB / 340.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003372/0.1744, allocations: 355.9 kB / 340.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1745, allocations: 476.8 kB / 341.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.1748, allocations: 207.8 kB / 341.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000658/0.1754, allocations: 1.114 MB / 342.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.1765, allocations: 1.469 MB / 344.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.1765, allocations: 4 kB / 344.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001433/0.1779, allocations: 1.425 MB / 345.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.178, allocations: 12.62 kB / 345.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.178, allocations: 27.97 kB / 345.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.1782, allocations: 91.02 kB / 345.7 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008393/0.179, allocations: 436.8 kB / 346.2 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1801, allocations: 1.756 MB / 347.9 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/0.1806, allocations: 67.94 kB / 348 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.1807, allocations: 68.12 kB / 348 MB, free: 6.527 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 (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.0006223/0.1813, allocations: 281.1 kB / 348.3 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.1815, allocations: 238.7 kB / 348.6 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.1827, allocations: 0.9715 MB / 349.5 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.1827, allocations: 19.98 kB / 349.5 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1827, allocations: 0 / 349.5 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1827, allocations: 7.969 kB / 349.6 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008383/0.1911, allocations: 2.716 MB / 352.3 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.1911, allocations: 4 kB / 352.3 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009507/0.192, allocations: 265.5 kB / 352.5 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002396/0.1923, allocations: 78.47 kB / 352.6 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.1924, allocations: 28 kB / 352.6 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009979/0.1934, allocations: 1.714 MB / 354.3 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1934, allocations: 8.031 kB / 354.4 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.1957, allocations: 1.402 MB / 355.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006451/0.1963, allocations: 310.6 kB / 356.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.1965, allocations: 24 kB / 356.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005792/0.1971, allocations: 39.98 kB / 356.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.1972, allocations: 105.1 kB / 356.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.927e-05/0.1973, allocations: 24 kB / 356.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009431/0.1982, allocations: 0.7766 MB / 357 MB, free: 13.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1982, allocations: 0 / 357 MB, free: 13.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00188/0.2001, allocations: 0.5195 MB / 357.5 MB, free: 13.14 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 (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.0003025/0.2004, allocations: 169.4 kB / 357.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.2021, allocations: 1.097 MB / 358.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2021, allocations: 7.5 kB / 358.8 MB, free: 11.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007961/0.2029, allocations: 0.6057 MB / 359.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.2046, allocations: 475 kB / 359.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007901/0.2125, allocations: 4.862 MB / 364.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006395/0.2132, allocations: 0.7503 MB / 365.5 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008011/0.214, allocations: 272.7 kB / 365.8 MB, free: 4.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008114/0.2148, allocations: 0.5253 MB / 366.3 MB, free: 4.402 MB / 314.7 MB Notification: Performance of SimCode: time 1.302e-06/0.2148, allocations: 4 kB / 366.3 MB, free: 4.398 MB / 314.7 MB Notification: Performance of Templates: time 0.03552/0.2503, allocations: 24.77 MB / 391.1 MB, free: 12.12 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.208391807973385]