Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.000934/0.000934, allocations: 76.81 kB / 22.28 MB, free: 2.207 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.001156/0.001156, allocations: 163.3 kB / 25.7 MB, free: 8.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8942/0.8942, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 251.6 MB, free: 7.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.711e-05/1.842e-05, allocations: 6.312 kB / 251.6 MB, free: 7.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02843/0.02845, allocations: 37.58 MB / 289.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02265/0.0511, allocations: 11.06 MB / 300.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007952/0.05906, allocations: 322.1 kB / 300.6 MB, free: 6 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01504/0.0741, allocations: 9.035 MB / 309.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01201/0.08611, allocations: 3.801 MB / 313.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006943/0.09306, allocations: 2.408 MB / 315.8 MB, free: 6.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01695/0.11, allocations: 13.97 MB / 329.8 MB, free: 8.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02563/0.1356, allocations: 17.7 MB / 347.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1533/0.2889, allocations: 11 MB / 358.5 MB, free: 35 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.2999, allocations: 7.846 MB / 366.4 MB, free: 35 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005393/0.3053, allocations: 1.974 MB / 368.3 MB, free: 35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006947/0.3123, allocations: 2.378 MB / 370.7 MB, free: 35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005812/0.3181, allocations: 4.275 MB / 375 MB, free: 35 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01113/0.3292, allocations: 5.293 MB / 380.3 MB, free: 35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01763/0.3469, allocations: 12.99 MB / 393.3 MB, free: 31.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.3469, allocations: 3.125 kB / 393.3 MB, free: 31.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3469, allocations: 0 / 393.3 MB, free: 31.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007154/0.3476, allocations: 0 / 393.3 MB, free: 31.64 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02589/0.3735, allocations: 15.09 MB / 408.4 MB, free: 21.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3735, allocations: 15.98 kB / 408.4 MB, free: 21.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0285/0.402, allocations: 8.921 MB / 417.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/0.4122, allocations: 3.872 MB / 421.2 MB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006745/0.4129, allocations: 0.944 MB / 422.1 MB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003774/0.4167, allocations: 1.249 MB / 423.4 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03245/0.4491, allocations: 10.26 MB / 433.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005171/0.4496, allocations: 28.41 kB / 433.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002725/0.4524, allocations: 0.5112 MB / 434.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009693/0.4533, allocations: 0.7388 MB / 434.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01938/0.4727, allocations: 5.24 MB / 440.1 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06703/0.5397, allocations: 38.28 MB / 478.4 MB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.5506, allocations: 8.721 MB / 487.1 MB, free: 9.062 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002551/0.5531, allocations: 1.416 MB / 488.6 MB, free: 7.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009832/0.5629, allocations: 5.258 MB / 493.8 MB, free: 2.633 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.563, allocations: 73.3 kB / 493.9 MB, free: 2.551 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 5.15e-06/0.563, allocations: 0 / 493.9 MB, free: 2.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=389): time 0.1515/0.7145, allocations: 8.809 MB / 0.4909 GB, free: 87.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.7146, allocations: 91.7 kB / 0.491 GB, free: 87.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/0.7178, allocations: 3.696 MB / 0.4946 GB, free: 86.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003907/0.7182, allocations: 88.83 kB / 0.4947 GB, free: 86.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.7198, allocations: 5.572 MB / 0.5001 GB, free: 83.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008668/0.7207, allocations: 1.425 MB / 0.5015 GB, free: 82.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/0.7219, allocations: 1.412 MB / 0.5029 GB, free: 82.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.87e-05/0.722, allocations: 305.1 kB / 0.5032 GB, free: 82.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.7231, allocations: 0.9433 MB / 0.5041 GB, free: 82.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.7249, allocations: 4.46 MB / 0.5085 GB, free: 77.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/0.7291, allocations: 6.181 MB / 0.5145 GB, free: 72.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.671e-05/0.7291, allocations: 35.03 kB / 0.5145 GB, free: 72.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.006764/0.7359, allocations: 5.161 MB / 0.5196 GB, free: 72.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-05/0.736, allocations: 63.62 kB / 0.5196 GB, free: 72.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.7361, allocations: 131.8 kB / 0.5198 GB, free: 72.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/0.7377, allocations: 0.8389 MB / 0.5206 GB, free: 72.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/0.7415, allocations: 1.809 MB / 0.5224 GB, free: 72.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.7461, allocations: 6.083 MB / 0.5283 GB, free: 68.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/0.7495, allocations: 328.2 kB / 0.5286 GB, free: 68.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00068/0.7502, allocations: 349.8 kB / 0.5289 GB, free: 68.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002654/0.7529, allocations: 0.664 MB / 0.5296 GB, free: 68.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007629/0.7536, allocations: 430.8 kB / 0.53 GB, free: 68.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.7571, allocations: 2.746 MB / 0.5327 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.7571, allocations: 41.03 kB / 0.5327 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.7571, allocations: 7 kB / 0.5327 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/0.7571, allocations: 23.11 kB / 0.5327 GB, free: 68.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.7683, allocations: 6.925 MB / 0.5395 GB, free: 67.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.7684, allocations: 3.906 kB / 0.5395 GB, free: 67.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/0.7702, allocations: 0.7251 MB / 0.5402 GB, free: 67.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.7716, allocations: 0.6672 MB / 0.5409 GB, free: 67.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003314/0.7719, allocations: 77.42 kB / 0.5409 GB, free: 67.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003949/0.7759, allocations: 5.648 MB / 0.5465 GB, free: 63.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7759, allocations: 7.703 kB / 0.5465 GB, free: 63.46 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005296/0.7812, allocations: 3.279 MB / 0.5497 GB, free: 60.97 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001842/0.783, allocations: 0.5858 MB / 0.5502 GB, free: 60.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007069/0.7837, allocations: 77.44 kB / 0.5503 GB, free: 60.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.7851, allocations: 110.7 kB / 0.5504 GB, free: 60.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004933/0.7856, allocations: 264.9 kB / 0.5507 GB, free: 60.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/0.7858, allocations: 85.19 kB / 0.5508 GB, free: 60.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002236/0.788, allocations: 1.669 MB / 0.5524 GB, free: 59.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.788, allocations: 2.188 kB / 0.5524 GB, free: 59.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006002/0.794, allocations: 1.967 MB / 0.5543 GB, free: 57.43 MB / 394.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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005797/0.7946, allocations: 237.7 kB / 0.5545 GB, free: 57.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005434/0.8, allocations: 3.94 MB / 0.5584 GB, free: 54.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002315/0.8002, allocations: 118.2 kB / 0.5585 GB, free: 54.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002386/0.8026, allocations: 1.745 MB / 0.5602 GB, free: 52.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004012/0.8066, allocations: 1.194 MB / 0.5614 GB, free: 52.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/0.8348, allocations: 17.86 MB / 0.5788 GB, free: 35.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00403/0.8388, allocations: 2.376 MB / 0.5811 GB, free: 33.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003366/0.8422, allocations: 0.8745 MB / 0.582 GB, free: 32.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/0.8444, allocations: 1.161 MB / 0.5831 GB, free: 31.45 MB / 394.7 MB Notification: Performance of SimCode: time 2.294e-06/0.8444, allocations: 4 kB / 0.5831 GB, free: 31.44 MB / 394.7 MB Notification: Performance of Templates: time 0.2436/1.088, allocations: 71.97 MB / 0.6534 GB, free: 97.43 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.477622419130057]