Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009461/0.0009461, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00094/0.00094, allocations: 157 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9142/0.9142, allocations: 177 MB / 205.9 MB, free: 4.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 3.984 kB / 274.1 MB, free: 4.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.039e-05/1.277e-05, allocations: 2.312 kB / 274.1 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01167/0.01168, allocations: 15.06 MB / 289.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007232/0.01891, allocations: 5.231 MB / 294.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.02015, allocations: 123.2 kB / 294.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.02176, allocations: 1.083 MB / 295.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.0236, allocations: 1.313 MB / 296.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.02466, allocations: 0.9155 MB / 297.9 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002541/0.0272, allocations: 3.808 MB / 301.7 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001558/0.02876, allocations: 1.846 MB / 303.5 MB, free: 6.688 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/0.03101, allocations: 3.026 MB / 306.5 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.03264, allocations: 1.773 MB / 308.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003445/0.03298, allocations: 464 kB / 308.8 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007425/0.03372, allocations: 0.6792 MB / 309.4 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006223/0.03434, allocations: 1.141 MB / 310.6 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008869/0.03523, allocations: 1.356 MB / 311.9 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.03794, allocations: 3.302 MB / 315.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.03795, allocations: 0 / 315.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.03795, allocations: 0 / 315.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.488e-05/0.03797, allocations: 0 / 315.2 MB, free: 10.93 MB / 298.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.004691/0.04266, allocations: 4.343 MB / 319.6 MB, free: 6.516 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.04271, allocations: 8.031 kB / 319.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001817/0.04452, allocations: 0.9431 MB / 320.5 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/0.04672, allocations: 2.115 MB / 322.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.04684, allocations: 234.7 kB / 322.9 MB, free: 3.168 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002877/0.04713, allocations: 312.3 kB / 323.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/0.04956, allocations: 2.251 MB / 325.4 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.441e-05/0.04962, allocations: 7.891 kB / 325.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.0498, allocations: 128 kB / 325.6 MB, free: 396 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.966e-05/0.0499, allocations: 142.2 kB / 325.7 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.05124, allocations: 0.9528 MB / 326.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009467/0.06071, allocations: 10.71 MB / 337.4 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.06213, allocations: 1.167 MB / 338.5 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.06266, allocations: 452.3 kB / 339 MB, free: 2.594 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00182/0.06448, allocations: 1.65 MB / 340.6 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.06451, allocations: 46.39 kB / 340.7 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=107): time 2.114e-06/0.06451, allocations: 0 / 340.7 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.004285/0.06879, allocations: 3.069 MB / 343.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.06882, allocations: 68.72 kB / 343.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.06993, allocations: 1.492 MB / 345.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.06999, allocations: 49.7 kB / 345.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007352/0.07072, allocations: 1.68 MB / 347 MB, free: 10.42 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.07098, allocations: 0.5113 MB / 347.5 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003307/0.07131, allocations: 352.9 kB / 347.9 MB, free: 9.547 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.035e-05/0.0714, allocations: 480.7 kB / 348.4 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.07168, allocations: 211.8 kB / 348.6 MB, free: 8.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006558/0.07233, allocations: 1.112 MB / 349.7 MB, free: 7.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.07347, allocations: 1.463 MB / 351.1 MB, free: 5.547 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.07348, allocations: 8 kB / 351.2 MB, free: 5.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001692/0.07517, allocations: 1.432 MB / 352.6 MB, free: 4.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.07519, allocations: 12 kB / 352.6 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.07521, allocations: 20 kB / 352.6 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001784/0.07539, allocations: 98.94 kB / 352.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008607/0.07625, allocations: 435.7 kB / 353.1 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007056/0.07695, allocations: 1.744 MB / 354.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00052/0.07747, allocations: 72.06 kB / 355 MB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.873e-05/0.07755, allocations: 67.98 kB / 355 MB, free: 1.523 MB / 330.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.0004619/0.07801, allocations: 283.8 kB / 355.3 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.07822, allocations: 242.7 kB / 355.5 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1142/0.1924, allocations: 0.9782 MB / 356.5 MB, free: 62.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.198e-05/0.1924, allocations: 14.14 kB / 356.5 MB, free: 62.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.1925, allocations: 2.844 kB / 356.5 MB, free: 62.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.365e-05/0.1925, allocations: 8.266 kB / 356.5 MB, free: 62.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/0.1969, allocations: 2.72 MB / 359.3 MB, free: 62.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1969, allocations: 1.984 kB / 359.3 MB, free: 62.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007101/0.1976, allocations: 263.8 kB / 359.5 MB, free: 62.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.1978, allocations: 78.09 kB / 359.6 MB, free: 62.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.86e-05/0.1978, allocations: 36.27 kB / 359.6 MB, free: 62.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004146/0.1982, allocations: 1.713 MB / 361.3 MB, free: 60.6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1982, allocations: 1.375 kB / 361.3 MB, free: 60.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.1997, allocations: 1.405 MB / 362.7 MB, free: 60.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/0.2001, allocations: 318.8 kB / 363.1 MB, free: 60.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.2002, allocations: 24.31 kB / 363.1 MB, free: 60.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.2006, allocations: 44.36 kB / 363.1 MB, free: 60.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2007, allocations: 96.42 kB / 363.2 MB, free: 60.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.2008, allocations: 33.72 kB / 363.3 MB, free: 60.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006501/0.2014, allocations: 0.7861 MB / 364 MB, free: 60.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2014, allocations: 1.969 kB / 364 MB, free: 60.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001131/0.2026, allocations: 0.5175 MB / 364.6 MB, free: 60.05 MB / 330.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.0001969/0.2028, allocations: 177.6 kB / 364.7 MB, free: 59.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.2038, allocations: 1.103 MB / 365.8 MB, free: 59.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2038, allocations: 0 / 365.8 MB, free: 59.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000475/0.2043, allocations: 0.6115 MB / 366.4 MB, free: 59.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.2053, allocations: 487.4 kB / 366.9 MB, free: 59.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.2101, allocations: 4.863 MB / 371.8 MB, free: 57.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.2106, allocations: 0.7527 MB / 372.5 MB, free: 57.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006497/0.2112, allocations: 288.9 kB / 372.8 MB, free: 57.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007113/0.2119, allocations: 0.5341 MB / 373.4 MB, free: 57.19 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2119, allocations: 0 / 373.4 MB, free: 57.19 MB / 330.7 MB Notification: Performance of Templates: time 0.02984/0.2418, allocations: 25.65 MB / 399 MB, free: 37.89 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.3807153832167387]