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.0009671/0.0009671, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001613/0.001613, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9425/0.9425, allocations: 177.2 MB / 205 MB, free: 5.277 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.412e-06/1.412e-06, allocations: 0 / 273 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/1.996e-05, allocations: 2.312 kB / 273 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1766/0.1766, allocations: 39.37 MB / 312.4 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.1962, allocations: 10.59 MB / 323 MB, free: 15.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0059/0.2021, allocations: 371.4 kB / 323.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01053/0.2126, allocations: 9.111 MB / 332.5 MB, free: 6.758 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009042/0.2217, allocations: 3.584 MB / 336.1 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.2262, allocations: 2.395 MB / 338.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01311/0.2393, allocations: 13.52 MB / 352 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04002/0.2793, allocations: 17.19 MB / 369.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02649/0.3058, allocations: 10.42 MB / 379.6 MB, free: 7.41 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0135/0.3193, allocations: 7.435 MB / 387 MB, free: 15.96 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003764/0.3231, allocations: 1.949 MB / 389 MB, free: 14.01 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004169/0.3272, allocations: 2.366 MB / 391.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002611/0.3298, allocations: 4.103 MB / 395.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006373/0.3362, allocations: 5.142 MB / 400.6 MB, free: 2.379 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.3481, allocations: 12.63 MB / 413.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3481, allocations: 0 / 413.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3481, allocations: 0 / 413.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001974/0.3483, allocations: 0 / 413.2 MB, free: 5.715 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.01819/0.3665, allocations: 16.13 MB / 429.3 MB, free: 5.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3666, allocations: 12.03 kB / 429.3 MB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1504/0.517, allocations: 7.869 MB / 437.2 MB, free: 77.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.5285, allocations: 7.712 MB / 444.9 MB, free: 77.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005622/0.5291, allocations: 0.9045 MB / 445.8 MB, free: 77.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001887/0.5309, allocations: 1.2 MB / 447 MB, free: 77.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01554/0.5465, allocations: 10.28 MB / 457.3 MB, free: 76.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001819/0.5467, allocations: 23.47 kB / 457.3 MB, free: 76.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007633/0.5474, allocations: 0.4918 MB / 457.8 MB, free: 76.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000386/0.5478, allocations: 0.6445 MB / 458.5 MB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00994/0.5577, allocations: 5.43 MB / 463.9 MB, free: 75.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04319/0.6009, allocations: 47.57 MB / 0.4995 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008104/0.609, allocations: 8.883 MB / 0.5082 GB, free: 22.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.611, allocations: 1.693 MB / 0.5098 GB, free: 20.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007667/0.6187, allocations: 5.693 MB / 0.5154 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.6187, allocations: 76.12 kB / 0.5154 GB, free: 14.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=349): time 4.919e-06/0.6187, allocations: 0 / 0.5154 GB, free: 14.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=389): time 0.01756/0.6363, allocations: 10.84 MB / 0.526 GB, free: 4.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.6363, allocations: 94.47 kB / 0.5261 GB, free: 4.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004169/0.6405, allocations: 4.426 MB / 0.5304 GB, free: 15.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/0.6407, allocations: 89.7 kB / 0.5305 GB, free: 15.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002818/0.6435, allocations: 5.906 MB / 0.5363 GB, free: 9.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008511/0.6443, allocations: 1.444 MB / 0.5377 GB, free: 8.164 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.6458, allocations: 1.46 MB / 0.5391 GB, free: 6.691 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.823e-05/0.6459, allocations: 476.8 kB / 0.5396 GB, free: 6.223 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/0.6475, allocations: 0.9657 MB / 0.5405 GB, free: 5.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00371/0.6512, allocations: 5.436 MB / 0.5458 GB, free: 13.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005841/0.6571, allocations: 7.077 MB / 0.5527 GB, free: 5.316 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.151e-05/0.6571, allocations: 28 kB / 0.5528 GB, free: 5.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008374/0.6655, allocations: 6.152 MB / 0.5588 GB, free: 15.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.6655, allocations: 48 kB / 0.5588 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.12e-05/0.6656, allocations: 100.4 kB / 0.5589 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00174/0.6674, allocations: 0.8787 MB / 0.5598 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/0.6703, allocations: 1.584 MB / 0.5613 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006323/0.6767, allocations: 8.467 MB / 0.5696 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/0.6791, allocations: 407.6 kB / 0.57 GB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003491/0.6794, allocations: 360 kB / 0.5703 GB, free: 3.707 MB / 426.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.002116/0.6816, allocations: 0.6235 MB / 0.5709 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00067/0.6822, allocations: 0.6257 MB / 0.5715 GB, free: 2.559 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/0.6874, allocations: 3.681 MB / 0.5751 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.6874, allocations: 36 kB / 0.5752 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.6874, allocations: 12 kB / 0.5752 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.22e-05/0.6874, allocations: 19.92 kB / 0.5752 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.7019, allocations: 11.49 MB / 0.5864 GB, free: 3.324 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.7019, allocations: 4.375 kB / 0.5864 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.7037, allocations: 0.7534 MB / 0.5872 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.7052, allocations: 0.7348 MB / 0.5879 GB, free: 1.848 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002657/0.7055, allocations: 91.95 kB / 0.588 GB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1818/0.8873, allocations: 7.988 MB / 0.5958 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.8873, allocations: 7.734 kB / 0.5958 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008589/0.8959, allocations: 4.587 MB / 0.6003 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/0.8979, allocations: 0.9153 MB / 0.6012 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004666/0.8984, allocations: 72.61 kB / 0.6012 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.8996, allocations: 218 kB / 0.6014 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004451/0.9, allocations: 284.2 kB / 0.6017 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/0.9002, allocations: 124.9 kB / 0.6018 GB, free: 102.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002677/0.9029, allocations: 2.077 MB / 0.6038 GB, free: 102.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9029, allocations: 0 / 0.6038 GB, free: 102.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004638/0.9075, allocations: 1.874 MB / 0.6057 GB, free: 102.5 MB / 442.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.0005145/0.9081, allocations: 262.3 kB / 0.6059 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005748/0.9138, allocations: 4.66 MB / 0.6105 GB, free: 101.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.9138, allocations: 0 / 0.6105 GB, free: 101.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.9161, allocations: 2.293 MB / 0.6127 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.919, allocations: 1.206 MB / 0.6139 GB, free: 101 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/0.9395, allocations: 17.16 MB / 0.6307 GB, free: 94.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002231/0.9418, allocations: 3.079 MB / 0.6337 GB, free: 94.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0029/0.9447, allocations: 1.806 MB / 0.6354 GB, free: 93.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007852/0.9455, allocations: 410.9 kB / 0.6358 GB, free: 93.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.303e-06/0.9455, allocations: 0 / 0.6358 GB, free: 93.88 MB / 442.7 MB Notification: Performance of Templates: time 0.07432/1.02, allocations: 65.14 MB / 0.6994 GB, free: 37.6 MB / 442.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: 5.33405040577054]