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.001117/0.001117, allocations: 76.17 kB / 9.933 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001625/0.002742, allocations: 449.7 kB / 10.37 MB, free: 324 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.001066/0.001066, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001315/0.002381, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9356/0.9356, allocations: 177.1 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08593/1.022, allocations: 53.66 MB / 243.3 MB, free: 15.58 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.974e-06/1.974e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.18e-05, allocations: 2.312 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01927/0.0193, allocations: 15.21 MB / 259.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.03115, allocations: 5.492 MB / 265.2 MB, free: 9.504 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002958/0.03411, allocations: 123.2 kB / 265.4 MB, free: 9.383 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00321/0.03732, allocations: 1.11 MB / 266.5 MB, free: 8.266 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003847/0.04117, allocations: 1.308 MB / 267.8 MB, free: 6.949 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.04311, allocations: 0.9179 MB / 268.7 MB, free: 6.035 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005004/0.04812, allocations: 3.809 MB / 272.5 MB, free: 2.215 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002865/0.05098, allocations: 1.897 MB / 274.4 MB, free: 232 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1217/0.1727, allocations: 3.22 MB / 277.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002635/0.1753, allocations: 1.776 MB / 279.4 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.1763, allocations: 467.4 kB / 279.9 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.1778, allocations: 0.694 MB / 280.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008434/0.1786, allocations: 0.9189 MB / 281.5 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001653/0.1802, allocations: 1.13 MB / 282.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003476/0.1837, allocations: 3.116 MB / 285.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/0.1837, allocations: 2 kB / 285.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1837, allocations: 3.844 kB / 285.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001416/0.1839, allocations: 0 / 285.7 MB, free: 3.141 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.005816/0.1897, allocations: 4.853 MB / 290.6 MB, free: 1.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.1897, allocations: 13.09 kB / 290.6 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.1913, allocations: 0.8571 MB / 291.4 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.1934, allocations: 1.479 MB / 292.9 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.1935, allocations: 236.8 kB / 293.2 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/0.1938, allocations: 318.7 kB / 293.5 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.1962, allocations: 2.295 MB / 295.8 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.84e-05/0.1962, allocations: 10.92 kB / 295.8 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001778/0.1964, allocations: 132.2 kB / 295.9 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.575e-05/0.1965, allocations: 149.2 kB / 296 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.1978, allocations: 0.9425 MB / 297 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00896/0.2068, allocations: 8.654 MB / 305.6 MB, free: 8.879 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.2081, allocations: 1.089 MB / 306.7 MB, free: 7.816 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004554/0.2085, allocations: 411.9 kB / 307.1 MB, free: 7.434 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001931/0.2105, allocations: 1.339 MB / 308.5 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.2105, allocations: 51.02 kB / 308.5 MB, free: 6.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.856e-06/0.2105, allocations: 0 / 308.5 MB, free: 6.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.004734/0.2152, allocations: 3.153 MB / 311.7 MB, free: 2.957 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.2153, allocations: 72.66 kB / 311.7 MB, free: 2.875 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008577/0.2161, allocations: 1.262 MB / 313 MB, free: 1.855 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.736e-05/0.2162, allocations: 49.7 kB / 313.1 MB, free: 1.801 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/0.2167, allocations: 1.325 MB / 314.4 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.2169, allocations: 0.5049 MB / 314.9 MB, free: 64 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.2172, allocations: 319.3 kB / 315.2 MB, free: 15.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.2173, allocations: 304.3 kB / 315.5 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.2175, allocations: 210.7 kB / 315.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/0.218, allocations: 0.8213 MB / 316.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008648/0.2189, allocations: 1.207 MB / 317.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.2189, allocations: 12 kB / 317.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001113/0.22, allocations: 1.119 MB / 318.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.22, allocations: 15.98 kB / 318.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.22, allocations: 20 kB / 318.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.2202, allocations: 90.33 kB / 319 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009991/0.2212, allocations: 0.5044 MB / 319.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005821/0.2218, allocations: 1.195 MB / 320.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.2223, allocations: 75.89 kB / 320.8 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.2224, allocations: 64.12 kB / 320.8 MB, free: 9.855 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.0005517/0.2229, allocations: 237.8 kB / 321.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.2231, allocations: 159.8 kB / 321.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009029/0.224, allocations: 0.7963 MB / 322 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.224, allocations: 12 kB / 322 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.224, allocations: 4 kB / 322 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.224, allocations: 7.969 kB / 322 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.227, allocations: 2.221 MB / 324.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.227, allocations: 4 kB / 324.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/0.2278, allocations: 329.3 kB / 324.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.2282, allocations: 212.8 kB / 324.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.2283, allocations: 65.33 kB / 324.8 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.78e-05/0.2283, allocations: 31.98 kB / 324.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005348/0.2289, allocations: 1.171 MB / 326 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2289, allocations: 4 kB / 326.1 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.23, allocations: 1.157 MB / 327.2 MB, free: 3.559 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.2301, allocations: 24 kB / 327.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.2305, allocations: 39.98 kB / 327.3 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.2306, allocations: 93.08 kB / 327.4 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.2306, allocations: 27.98 kB / 327.4 MB, free: 3.375 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005321/0.2312, allocations: 0.6175 MB / 328 MB, free: 2.836 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2312, allocations: 0 / 328 MB, free: 2.836 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001188/0.2324, allocations: 0.5195 MB / 328.5 MB, free: 2.316 MB / 298.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.0002416/0.2326, allocations: 152.9 kB / 328.7 MB, free: 2.176 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.2336, allocations: 0.9489 MB / 329.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.986e-05/0.2337, allocations: 44.38 kB / 329.7 MB, free: 1.254 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004477/0.2341, allocations: 0.503 MB / 330.2 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.2352, allocations: 0.6126 MB / 330.8 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01781/0.253, allocations: 4.998 MB / 335.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.2536, allocations: 0.6189 MB / 336.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009402/0.2545, allocations: 280.6 kB / 336.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007554/0.2553, allocations: 488.7 kB / 337.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.833e-06/0.2553, allocations: 0 / 337.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of Templates: time 0.03653/0.2918, allocations: 26.59 MB / 363.7 MB, free: 15.66 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.116006998345256]