Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.0009814/0.0009814, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.0009342/0.0009342, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9535/0.9535, allocations: 177 MB / 204.8 MB, free: 5.555 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.631e-05/2.805e-05, allocations: 2.312 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1641/0.1641, allocations: 39.38 MB / 312.3 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02194/0.1861, allocations: 10.59 MB / 322.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009218/0.1953, allocations: 376.1 kB / 323.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01354/0.2088, allocations: 9.111 MB / 332.4 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.2204, allocations: 3.588 MB / 336 MB, free: 2.961 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006328/0.2267, allocations: 2.395 MB / 338.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0166/0.2433, allocations: 13.51 MB / 351.9 MB, free: 3.016 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02643/0.2697, allocations: 17.19 MB / 369.1 MB, free: 1.664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01643/0.2862, allocations: 10.42 MB / 379.5 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01112/0.2973, allocations: 7.439 MB / 387 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004991/0.3023, allocations: 1.945 MB / 388.9 MB, free: 13.83 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007243/0.3095, allocations: 2.362 MB / 391.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005231/0.3147, allocations: 4.106 MB / 395.4 MB, free: 7.348 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01063/0.3254, allocations: 5.142 MB / 400.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01876/0.3441, allocations: 12.64 MB / 413.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3441, allocations: 0 / 413.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3441, allocations: 0 / 413.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006257/0.3448, allocations: 0 / 413.2 MB, free: 5.52 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02933/0.3741, allocations: 16.13 MB / 429.3 MB, free: 5.262 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.3742, allocations: 15.98 kB / 429.3 MB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2987/0.6729, allocations: 7.868 MB / 437.2 MB, free: 74.94 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01474/0.6876, allocations: 7.722 MB / 444.9 MB, free: 74.48 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009187/0.6885, allocations: 0.9033 MB / 445.8 MB, free: 74.45 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003815/0.6923, allocations: 1.199 MB / 447 MB, free: 74.44 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02726/0.7196, allocations: 10.29 MB / 457.3 MB, free: 73.5 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002873/0.7199, allocations: 23.8 kB / 457.3 MB, free: 73.5 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001308/0.7212, allocations: 0.4903 MB / 457.8 MB, free: 73.5 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003924/0.7216, allocations: 0.64 MB / 458.4 MB, free: 73.47 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/0.7377, allocations: 5.433 MB / 463.9 MB, free: 72.68 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07551/0.8132, allocations: 47.59 MB / 0.4995 GB, free: 26.93 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/0.8288, allocations: 8.896 MB / 0.5082 GB, free: 19.67 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004665/0.8335, allocations: 1.688 MB / 0.5098 GB, free: 17.97 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.8441, allocations: 5.692 MB / 0.5154 GB, free: 12.51 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.8442, allocations: 76.14 kB / 0.5154 GB, free: 12.43 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 5.561e-06/0.8442, allocations: 0 / 0.5154 GB, free: 12.43 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.0185/0.8627, allocations: 10.84 MB / 0.526 GB, free: 1.949 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.8627, allocations: 90.47 kB / 0.5261 GB, free: 1.848 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004964/0.8677, allocations: 4.443 MB / 0.5304 GB, free: 13.39 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002524/0.8679, allocations: 85.7 kB / 0.5305 GB, free: 13.3 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003345/0.8713, allocations: 5.913 MB / 0.5363 GB, free: 7.367 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/0.8723, allocations: 1.449 MB / 0.5377 GB, free: 5.934 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001487/0.8738, allocations: 1.468 MB / 0.5391 GB, free: 4.453 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.8739, allocations: 476.8 kB / 0.5396 GB, free: 3.984 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/0.8757, allocations: 0.9594 MB / 0.5405 GB, free: 3.023 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00406/0.8797, allocations: 5.441 MB / 0.5459 GB, free: 11.7 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006834/0.8866, allocations: 7.071 MB / 0.5528 GB, free: 3.082 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.996e-05/0.8866, allocations: 28 kB / 0.5528 GB, free: 3.055 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.009812/0.8965, allocations: 6.154 MB / 0.5588 GB, free: 13.5 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/0.8965, allocations: 48 kB / 0.5588 GB, free: 13.45 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/0.8967, allocations: 96 kB / 0.5589 GB, free: 13.36 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/0.8996, allocations: 0.89 MB / 0.5598 GB, free: 12.45 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004637/0.9042, allocations: 1.583 MB / 0.5613 GB, free: 10.98 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009227/0.9134, allocations: 8.468 MB / 0.5696 GB, free: 2.223 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/0.918, allocations: 401.2 kB / 0.57 GB, free: 1.832 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/0.9191, allocations: 359.9 kB / 0.5703 GB, free: 1.48 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003161/0.9222, allocations: 0.6301 MB / 0.571 GB, free: 0.9531 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/0.9235, allocations: 0.6288 MB / 0.5716 GB, free: 332 kB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007358/0.9309, allocations: 3.667 MB / 0.5752 GB, free: 12.63 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.929e-05/0.9309, allocations: 40 kB / 0.5752 GB, free: 12.59 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/0.9309, allocations: 12 kB / 0.5752 GB, free: 12.58 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.854e-05/0.931, allocations: 23.92 kB / 0.5752 GB, free: 12.56 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/0.9537, allocations: 11.48 MB / 0.5864 GB, free: 1.098 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.9537, allocations: 4 kB / 0.5864 GB, free: 1.094 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002485/0.9562, allocations: 0.7569 MB / 0.5872 GB, free: 380 kB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1638/1.12, allocations: 0.7358 MB / 0.5879 GB, free: 104.7 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000826/1.121, allocations: 89.89 kB / 0.588 GB, free: 104.7 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006759/1.128, allocations: 7.99 MB / 0.5958 GB, free: 99.35 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/1.128, allocations: 8.938 kB / 0.5958 GB, free: 99.34 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009972/1.138, allocations: 4.584 MB / 0.6003 GB, free: 98.7 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.14, allocations: 0.9182 MB / 0.6012 GB, free: 98.7 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007371/1.141, allocations: 71.75 kB / 0.6012 GB, free: 98.7 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/1.142, allocations: 219.7 kB / 0.6015 GB, free: 98.7 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004862/1.143, allocations: 280 kB / 0.6017 GB, free: 98.7 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.143, allocations: 118.9 kB / 0.6018 GB, free: 98.7 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.003196/1.146, allocations: 2.079 MB / 0.6039 GB, free: 98.47 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.146, allocations: 3.969 kB / 0.6039 GB, free: 98.47 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005336/1.151, allocations: 1.878 MB / 0.6057 GB, free: 98.47 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0005708/1.152, allocations: 253.7 kB / 0.6059 GB, free: 98.39 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.00664/1.159, allocations: 4.666 MB / 0.6105 GB, free: 97.67 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.159, allocations: 0 / 0.6105 GB, free: 97.67 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002751/1.161, allocations: 2.302 MB / 0.6127 GB, free: 97.03 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/1.165, allocations: 1.209 MB / 0.6139 GB, free: 96.94 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02313/1.188, allocations: 17.15 MB / 0.6307 GB, free: 90.39 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/1.191, allocations: 3.079 MB / 0.6337 GB, free: 90.06 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003821/1.195, allocations: 1.816 MB / 0.6355 GB, free: 89.82 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.196, allocations: 403.6 kB / 0.6358 GB, free: 89.81 MB / 442.8 MB Notification: Performance of SimCode: time 2.304e-06/1.196, allocations: 7.5 kB / 0.6359 GB, free: 89.81 MB / 442.8 MB Notification: Performance of Templates: time 0.08248/1.278, allocations: 65.14 MB / 0.6995 GB, free: 33.39 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_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: 5.645879338029772]