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.0009777/0.0009777, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.001079/0.001079, allocations: 162.2 kB / 24.99 MB, free: 8.746 MB / 18.57 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.9161/0.9161, allocations: 177.1 MB / 205.3 MB, free: 5.629 MB / 186.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.583e-06/1.583e-06, allocations: 0 / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.681e-05/1.84e-05, allocations: 6.312 kB / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01234/0.01236, allocations: 15.53 MB / 288.6 MB, free: 2.223 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1241/0.1364, allocations: 5.239 MB / 293.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.1386, allocations: 124.6 kB / 294 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.141, allocations: 1.084 MB / 295 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.144, allocations: 1.319 MB / 296.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001708/0.1458, allocations: 0.9189 MB / 297.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.1491, allocations: 3.796 MB / 301.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002097/0.1512, allocations: 1.849 MB / 302.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.1538, allocations: 2.644 MB / 305.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00228/0.1561, allocations: 1.899 MB / 307.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008418/0.1569, allocations: 479.7 kB / 307.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.158, allocations: 0.6872 MB / 308.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000595/0.1586, allocations: 1.2 MB / 309.8 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1598, allocations: 1.394 MB / 311.2 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.1624, allocations: 3.36 MB / 314.6 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1624, allocations: 0 / 314.6 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1624, allocations: 0 / 314.6 MB, free: 6.406 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.062e-05/0.1624, allocations: 0 / 314.6 MB, free: 6.406 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.005108/0.1676, allocations: 4.498 MB / 319.1 MB, free: 2.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1676, allocations: 8.031 kB / 319.1 MB, free: 2.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001922/0.1695, allocations: 0.9806 MB / 320.1 MB, free: 1.289 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.1717, allocations: 2.137 MB / 322.2 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.1718, allocations: 237.3 kB / 322.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002968/0.1721, allocations: 316.3 kB / 322.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003275/0.1754, allocations: 2.463 MB / 325.2 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.1754, allocations: 4 kB / 325.2 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.1756, allocations: 127.9 kB / 325.3 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.1757, allocations: 149.1 kB / 325.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.1783, allocations: 1.199 MB / 326.7 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01065/0.1889, allocations: 10.96 MB / 337.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1908, allocations: 1.229 MB / 338.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.1915, allocations: 0.4914 MB / 339.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002113/0.1936, allocations: 1.78 MB / 341.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.1936, allocations: 50.39 kB / 341.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 2.404e-06/0.1936, allocations: 0 / 341.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.005468/0.1991, allocations: 3.78 MB / 345 MB, free: 8.004 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.1991, allocations: 72.72 kB / 345.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.2011, allocations: 1.539 MB / 346.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/0.2011, allocations: 49.7 kB / 346.6 MB, free: 6.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.2021, allocations: 1.659 MB / 348.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003696/0.2025, allocations: 0.5109 MB / 348.8 MB, free: 4.141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004621/0.203, allocations: 349.1 kB / 349.2 MB, free: 3.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2031, allocations: 480.7 kB / 349.6 MB, free: 3.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006286/0.2037, allocations: 279.8 kB / 349.9 MB, free: 3.043 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.2048, allocations: 1.167 MB / 351.1 MB, free: 1.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.2067, allocations: 1.59 MB / 352.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.2067, allocations: 8 kB / 352.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002511/0.2092, allocations: 1.581 MB / 354.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.2093, allocations: 16 kB / 354.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.2093, allocations: 16 kB / 354.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002585/0.2095, allocations: 95 kB / 354.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.2108, allocations: 487.6 kB / 354.8 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009144/0.2118, allocations: 1.767 MB / 356.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008581/0.2126, allocations: 112 kB / 356.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.2127, allocations: 91.92 kB / 356.8 MB, free: 11.23 MB / 314.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.0005675/0.2133, allocations: 272 kB / 357.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.2136, allocations: 246.7 kB / 357.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.2155, allocations: 1.102 MB / 358.4 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.2155, allocations: 16 kB / 358.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2155, allocations: 0 / 358.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.2155, allocations: 7.969 kB / 358.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005082/0.2206, allocations: 3.434 MB / 361.9 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2206, allocations: 0 / 361.9 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009603/0.2216, allocations: 319.8 kB / 362.2 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/0.2218, allocations: 71.02 kB / 362.3 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.275e-05/0.2219, allocations: 27.98 kB / 362.3 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008185/0.2227, allocations: 1.736 MB / 364 MB, free: 3.785 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.2227, allocations: 7.938 kB / 364 MB, free: 3.777 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.2252, allocations: 1.585 MB / 365.6 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005656/0.2257, allocations: 358.5 kB / 366 MB, free: 1.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.2259, allocations: 24 kB / 366 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006384/0.2266, allocations: 84 kB / 366.1 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.2267, allocations: 101 kB / 366.2 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.2268, allocations: 36 kB / 366.2 MB, free: 1.527 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00713/0.2339, allocations: 0.879 MB / 367.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2339, allocations: 0 / 367.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001229/0.2352, allocations: 0.5234 MB / 367.6 MB, free: 136 kB / 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.0002777/0.2354, allocations: 178.7 kB / 367.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007854/0.2433, allocations: 1.223 MB / 369 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2433, allocations: 0 / 369 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008653/0.2442, allocations: 0.6718 MB / 369.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007499/0.2517, allocations: 493.5 kB / 370.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.2674, allocations: 4.947 MB / 375.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006586/0.2681, allocations: 0.7469 MB / 375.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001027/0.2691, allocations: 424.4 kB / 376.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003365/0.2725, allocations: 148.5 kB / 376.4 MB, free: 7.168 MB / 330.7 MB Notification: Performance of SimCode: time 1.322e-06/0.2725, allocations: 0 / 376.4 MB, free: 7.168 MB / 330.7 MB Notification: Performance of Templates: time 0.04089/0.3134, allocations: 24.8 MB / 401.2 MB, free: 14.77 MB / 362.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2062200501095504]