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.001045/0.001045, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001658/0.001658, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9754/0.9754, allocations: 177 MB / 205.2 MB, free: 5.531 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.884e-06/1.884e-06, allocations: 0 / 273 MB, free: 1.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.095e-05/2.283e-05, allocations: 5.406 kB / 273.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1502/0.1502, allocations: 39.15 MB / 312.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01956/0.1697, allocations: 10.57 MB / 322.8 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007011/0.1767, allocations: 374.6 kB / 323.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01204/0.1888, allocations: 9.094 MB / 332.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009354/0.1981, allocations: 3.577 MB / 335.8 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005065/0.2032, allocations: 2.393 MB / 338.2 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01326/0.2165, allocations: 13.51 MB / 351.7 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02425/0.2407, allocations: 17.19 MB / 368.9 MB, free: 2.137 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01642/0.2571, allocations: 10.42 MB / 379.3 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01181/0.2689, allocations: 7.407 MB / 386.7 MB, free: 288 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00551/0.2744, allocations: 1.949 MB / 388.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006047/0.2805, allocations: 2.362 MB / 391 MB, free: 11.97 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003559/0.284, allocations: 4.11 MB / 395.1 MB, free: 7.848 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008973/0.293, allocations: 5.142 MB / 400.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0161/0.3091, allocations: 12.64 MB / 412.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3091, allocations: 0 / 412.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3091, allocations: 0 / 412.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004215/0.3096, allocations: 8 kB / 412.9 MB, free: 6.016 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.02841/0.338, allocations: 16.12 MB / 429.1 MB, free: 5.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.338, allocations: 15.98 kB / 429.1 MB, free: 5.754 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2228/0.5608, allocations: 7.871 MB / 436.9 MB, free: 118.3 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.5722, allocations: 7.719 MB / 444.7 MB, free: 116.3 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005515/0.5727, allocations: 0.9067 MB / 445.6 MB, free: 115.9 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002291/0.575, allocations: 1.197 MB / 446.8 MB, free: 115.5 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0208/0.5958, allocations: 10.29 MB / 457.1 MB, free: 111.8 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002355/0.5961, allocations: 23.39 kB / 457.1 MB, free: 111.8 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008481/0.5969, allocations: 0.4928 MB / 457.6 MB, free: 111.4 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004389/0.5973, allocations: 0.6395 MB / 458.2 MB, free: 111.3 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01227/0.6096, allocations: 5.439 MB / 463.6 MB, free: 106.5 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04397/0.6536, allocations: 47.59 MB / 0.4993 GB, free: 58.46 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008277/0.6619, allocations: 8.877 MB / 0.5079 GB, free: 51.17 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/0.6638, allocations: 1.688 MB / 0.5096 GB, free: 49.47 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006766/0.6706, allocations: 5.698 MB / 0.5151 GB, free: 43.96 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.6706, allocations: 72.14 kB / 0.5152 GB, free: 43.88 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.779e-06/0.6706, allocations: 0 / 0.5152 GB, free: 43.88 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01662/0.6873, allocations: 10.85 MB / 0.5258 GB, free: 33.11 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.6873, allocations: 90.47 kB / 0.5259 GB, free: 33 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/0.6913, allocations: 4.439 MB / 0.5302 GB, free: 28.55 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.6915, allocations: 89.7 kB / 0.5303 GB, free: 28.45 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.6932, allocations: 5.916 MB / 0.5361 GB, free: 22.52 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000646/0.6939, allocations: 1.44 MB / 0.5375 GB, free: 21.1 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/0.695, allocations: 1.468 MB / 0.5389 GB, free: 19.62 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.156e-05/0.6951, allocations: 480.7 kB / 0.5394 GB, free: 19.14 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.6965, allocations: 0.9657 MB / 0.5403 GB, free: 18.18 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002423/0.6989, allocations: 5.427 MB / 0.5456 GB, free: 10.81 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004594/0.7035, allocations: 7.079 MB / 0.5525 GB, free: 1.777 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.711e-05/0.7036, allocations: 28 kB / 0.5526 GB, free: 1.75 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008062/0.7116, allocations: 6.151 MB / 0.5586 GB, free: 11.53 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.7117, allocations: 48 kB / 0.5586 GB, free: 11.48 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-05/0.7118, allocations: 100 kB / 0.5587 GB, free: 11.39 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.7137, allocations: 0.8961 MB / 0.5596 GB, free: 10.47 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/0.7169, allocations: 1.583 MB / 0.5611 GB, free: 8.887 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.7239, allocations: 8.456 MB / 0.5694 GB, free: 64 kB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1291/0.8531, allocations: 401.5 kB / 0.5698 GB, free: 99.45 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006771/0.8538, allocations: 355.5 kB / 0.5701 GB, free: 99.45 MB / 394.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.002385/0.8561, allocations: 0.6263 MB / 0.5707 GB, free: 99.29 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008728/0.857, allocations: 0.6276 MB / 0.5713 GB, free: 99.29 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005966/0.863, allocations: 3.683 MB / 0.5749 GB, free: 99.02 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.863, allocations: 40.28 kB / 0.575 GB, free: 99.02 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.863, allocations: 8.562 kB / 0.575 GB, free: 99.02 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/0.8631, allocations: 22.7 kB / 0.575 GB, free: 99.02 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01533/0.8784, allocations: 11.48 MB / 0.5862 GB, free: 98.2 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.8784, allocations: 0 / 0.5862 GB, free: 98.2 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/0.8801, allocations: 0.7485 MB / 0.587 GB, free: 98.17 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.8815, allocations: 0.7399 MB / 0.5877 GB, free: 98.1 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001846/0.8817, allocations: 90.66 kB / 0.5878 GB, free: 98.1 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/0.8864, allocations: 8.005 MB / 0.5956 GB, free: 92.66 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8864, allocations: 8.219 kB / 0.5956 GB, free: 92.66 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006335/0.8928, allocations: 4.58 MB / 0.6001 GB, free: 91.99 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.8941, allocations: 0.9202 MB / 0.601 GB, free: 91.98 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000425/0.8945, allocations: 72.31 kB / 0.601 GB, free: 91.98 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.8957, allocations: 214.4 kB / 0.6012 GB, free: 91.98 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/0.8961, allocations: 294 kB / 0.6015 GB, free: 91.97 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.8962, allocations: 112.9 kB / 0.6016 GB, free: 91.97 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002365/0.8986, allocations: 2.078 MB / 0.6036 GB, free: 91.66 MB / 394.8 MB Notification: Performance of sort global known variables: time 9e-08/0.8986, allocations: 3.75 kB / 0.6037 GB, free: 91.66 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004029/0.9026, allocations: 1.88 MB / 0.6055 GB, free: 91.48 MB / 394.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.0004564/0.9031, allocations: 260.8 kB / 0.6057 GB, free: 91.31 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.005974/0.909, allocations: 4.661 MB / 0.6103 GB, free: 89.68 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.909, allocations: 0 / 0.6103 GB, free: 89.68 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002347/0.9114, allocations: 2.303 MB / 0.6125 GB, free: 88.66 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.9148, allocations: 1.208 MB / 0.6137 GB, free: 88.12 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0215/0.9363, allocations: 17.14 MB / 0.6305 GB, free: 72.27 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002388/0.9387, allocations: 3.083 MB / 0.6335 GB, free: 70.02 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003492/0.9422, allocations: 1.815 MB / 0.6352 GB, free: 68.88 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/0.943, allocations: 407.4 kB / 0.6356 GB, free: 68.51 MB / 394.8 MB Notification: Performance of SimCode: time 2.044e-06/0.943, allocations: 0 / 0.6356 GB, free: 68.51 MB / 394.8 MB Notification: Performance of Templates: time 0.07644/1.019, allocations: 65.13 MB / 0.6992 GB, free: 4.238 MB / 394.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.296856114175171]