Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.0009252/0.0009252, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.001645/0.001645, allocations: 170.2 kB / 24.92 MB, free: 9.184 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.8955/0.8955, allocations: 177.1 MB / 205.3 MB, free: 5.461 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.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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.089e-05, allocations: 2.312 kB / 273.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1503/0.1504, allocations: 37.6 MB / 311.1 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.1671, allocations: 11.13 MB / 322.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003724/0.1709, allocations: 374.8 kB / 322.6 MB, free: 15.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00904/0.1799, allocations: 9.083 MB / 331.7 MB, free: 7.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005671/0.1856, allocations: 3.612 MB / 335.3 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003099/0.1887, allocations: 2.38 MB / 337.7 MB, free: 1.434 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008962/0.1976, allocations: 13.53 MB / 351.2 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01431/0.2119, allocations: 17.61 MB / 368.8 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00769/0.2196, allocations: 10.68 MB / 379.5 MB, free: 7.348 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006333/0.226, allocations: 7.532 MB / 387 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.2275, allocations: 1.941 MB / 389 MB, free: 13.86 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002185/0.2297, allocations: 2.335 MB / 391.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002607/0.2323, allocations: 4.075 MB / 395.4 MB, free: 7.438 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00499/0.2373, allocations: 5.115 MB / 400.5 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.2492, allocations: 12.57 MB / 413.1 MB, free: 5.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2492, allocations: 4 kB / 413.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2492, allocations: 0 / 413.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000227/0.2494, allocations: 0 / 413.1 MB, free: 5.707 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.02274/0.2721, allocations: 14.56 MB / 427.6 MB, free: 7.039 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2722, allocations: 8.031 kB / 427.6 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02285/0.295, allocations: 6.345 MB / 434 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1179/0.413, allocations: 4.394 MB / 438.4 MB, free: 79.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005643/0.4135, allocations: 0.9079 MB / 439.3 MB, free: 79.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001972/0.4155, allocations: 1.192 MB / 440.5 MB, free: 79.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.013/0.4285, allocations: 9.66 MB / 450.1 MB, free: 78.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002055/0.4287, allocations: 21.12 kB / 450.1 MB, free: 78.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007672/0.4295, allocations: 498.9 kB / 450.6 MB, free: 78.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003604/0.4298, allocations: 0.6477 MB / 451.3 MB, free: 78.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007382/0.4372, allocations: 4.669 MB / 455.9 MB, free: 78.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.034/0.4712, allocations: 36.61 MB / 492.6 MB, free: 50.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005779/0.477, allocations: 6.135 MB / 498.7 MB, free: 44.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.4782, allocations: 1.288 MB / 500 MB, free: 43.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005795/0.484, allocations: 4.218 MB / 0.4924 GB, free: 38.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.484, allocations: 69.31 kB / 0.4924 GB, free: 38.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=349): time 5.119e-06/0.484, allocations: 8 kB / 0.4924 GB, free: 38.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=389): time 0.01245/0.4965, allocations: 8.308 MB / 0.5006 GB, free: 30.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.4965, allocations: 98.47 kB / 0.5007 GB, free: 30.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.4985, allocations: 3.331 MB / 0.5039 GB, free: 27.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/0.4987, allocations: 89.7 kB / 0.504 GB, free: 27.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.4998, allocations: 5.113 MB / 0.509 GB, free: 22.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004849/0.5003, allocations: 1.405 MB / 0.5104 GB, free: 21.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009674/0.5013, allocations: 1.235 MB / 0.5116 GB, free: 20.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.114e-05/0.5013, allocations: 305.1 kB / 0.5119 GB, free: 20.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009474/0.5022, allocations: 0.8698 MB / 0.5127 GB, free: 19.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.5037, allocations: 3.687 MB / 0.5163 GB, free: 14.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.5066, allocations: 5.229 MB / 0.5214 GB, free: 8.297 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.5e-05/0.5067, allocations: 28 kB / 0.5214 GB, free: 8.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.004636/0.5113, allocations: 4.523 MB / 0.5259 GB, free: 4.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.5113, allocations: 48 kB / 0.5259 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-05/0.5114, allocations: 100.4 kB / 0.526 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.5127, allocations: 0.8068 MB / 0.5268 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/0.5151, allocations: 1.445 MB / 0.5282 GB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/0.5195, allocations: 6.005 MB / 0.5341 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.5215, allocations: 287.8 kB / 0.5343 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/0.5218, allocations: 292 kB / 0.5346 GB, free: 11.4 MB / 394.7 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.001798/0.5236, allocations: 0.5834 MB / 0.5352 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005978/0.5242, allocations: 411.6 kB / 0.5356 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003493/0.5277, allocations: 2.706 MB / 0.5382 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.5277, allocations: 43.94 kB / 0.5383 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5277, allocations: 8 kB / 0.5383 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.5278, allocations: 19.92 kB / 0.5383 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009521/0.5373, allocations: 6.799 MB / 0.5449 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.5373, allocations: 4.062 kB / 0.5449 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.5388, allocations: 0.6275 MB / 0.5455 GB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.5401, allocations: 0.664 MB / 0.5462 GB, free: 372 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/0.5403, allocations: 83.91 kB / 0.5463 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004126/0.5444, allocations: 5.63 MB / 0.5518 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5444, allocations: 4 kB / 0.5518 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.5488, allocations: 3.277 MB / 0.555 GB, free: 7.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.55, allocations: 0.5668 MB / 0.5555 GB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004069/0.5504, allocations: 75.98 kB / 0.5556 GB, free: 6.578 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009701/0.5514, allocations: 104 kB / 0.5557 GB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003438/0.5517, allocations: 273.3 kB / 0.556 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.5519, allocations: 79.97 kB / 0.556 GB, free: 6.133 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001588/0.5535, allocations: 1.542 MB / 0.5575 GB, free: 4.781 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5535, allocations: 0 / 0.5575 GB, free: 4.781 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00413/0.5576, allocations: 1.867 MB / 0.5594 GB, free: 2.914 MB / 410.7 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.0004476/0.558, allocations: 246.9 kB / 0.5596 GB, free: 2.707 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.5623, allocations: 3.642 MB / 0.5632 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001328/0.5624, allocations: 76.69 kB / 0.5632 GB, free: 15.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.5644, allocations: 1.768 MB / 0.565 GB, free: 13.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/0.5673, allocations: 1.193 MB / 0.5661 GB, free: 12.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1396/0.7069, allocations: 16.82 MB / 0.5825 GB, free: 111.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002865/0.7097, allocations: 2.261 MB / 0.5848 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002626/0.7124, allocations: 0.8115 MB / 0.5855 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002191/0.7146, allocations: 1.127 MB / 0.5867 GB, free: 110.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.993e-06/0.7146, allocations: 0 / 0.5867 GB, free: 110.9 MB / 426.7 MB Notification: Performance of Templates: time 0.08938/0.8039, allocations: 70.7 MB / 0.6557 GB, free: 64.02 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.675222820136696]