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.0008899/0.0008899, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0008475/0.0008475, allocations: 164.2 kB / 25.45 MB, free: 9.348 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.8609/0.8609, allocations: 158.6 MB / 187.2 MB, free: 3.047 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.1.|currentController.y.2.|currentController.y.3.",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.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 299.8 MB, free: 6.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.387e-05/2.531e-05, allocations: 2.281 kB / 299.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02507/0.0251, allocations: 34.31 MB / 334.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02038/0.04548, allocations: 10.29 MB / 344.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007643/0.05312, allocations: 326.1 kB / 344.7 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.06427, allocations: 8.467 MB / 353.1 MB, free: 1.242 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1735/0.2378, allocations: 3.777 MB / 356.9 MB, free: 16.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005049/0.2428, allocations: 2.394 MB / 359.3 MB, free: 16.12 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01289/0.2557, allocations: 13.97 MB / 373.3 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01768/0.2734, allocations: 17.27 MB / 390.6 MB, free: 4.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01414/0.2875, allocations: 10.72 MB / 401.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01002/0.2976, allocations: 7.005 MB / 408.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00423/0.3018, allocations: 1.988 MB / 410.3 MB, free: 5.477 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005295/0.3071, allocations: 2.372 MB / 412.6 MB, free: 3.156 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00351/0.3106, allocations: 4.238 MB / 416.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009142/0.3197, allocations: 5.262 MB / 422.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02401/0.3438, allocations: 26.78 MB / 448.9 MB, free: 148 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3438, allocations: 4 kB / 448.9 MB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3438, allocations: 0 / 448.9 MB, free: 144 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007109/0.3445, allocations: 0 / 448.9 MB, free: 144 kB / 378.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.0318/0.3763, allocations: 15.68 MB / 464.6 MB, free: 480 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3763, allocations: 15.98 kB / 464.6 MB, free: 464 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02418/0.4005, allocations: 9.192 MB / 473.8 MB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/0.4132, allocations: 7.524 MB / 481.3 MB, free: 128 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006784/0.4138, allocations: 0.9459 MB / 482.3 MB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/0.4171, allocations: 1.245 MB / 483.5 MB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03312/0.4503, allocations: 20.38 MB / 0.4921 GB, free: 9.504 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002554/0.4505, allocations: 27.89 kB / 0.4921 GB, free: 9.477 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001445/0.452, allocations: 0.5136 MB / 0.4926 GB, free: 8.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004346/0.4524, allocations: 0.7332 MB / 0.4933 GB, free: 8.246 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03064/0.483, allocations: 18.9 MB / 0.5118 GB, free: 5.344 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3667/0.8498, allocations: 53.71 MB / 0.5642 GB, free: 119.1 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01401/0.8638, allocations: 14.71 MB / 0.5786 GB, free: 111.4 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004016/0.8678, allocations: 3.729 MB / 0.5822 GB, free: 107.6 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.8795, allocations: 10.05 MB / 0.5921 GB, free: 97.8 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.8795, allocations: 65.31 kB / 0.5921 GB, free: 97.72 MB / 458.8 MB Notification: Performance of pre-optimization done (n=349): time 5.33e-06/0.8795, allocations: 0 / 0.5921 GB, free: 97.72 MB / 458.8 MB Notification: Performance of matching and sorting (n=389): time 0.0217/0.9012, allocations: 17.86 MB / 0.6096 GB, free: 80.39 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.9013, allocations: 90.47 kB / 0.6097 GB, free: 80.29 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.906, allocations: 5.263 MB / 0.6148 GB, free: 75.2 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.9061, allocations: 85.7 kB / 0.6149 GB, free: 75.11 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.9077, allocations: 6.078 MB / 0.6208 GB, free: 69.46 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006021/0.9083, allocations: 1.423 MB / 0.6222 GB, free: 68.05 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/0.9095, allocations: 1.493 MB / 0.6237 GB, free: 66.55 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 2.588e-05/0.9095, allocations: 305.1 kB / 0.6239 GB, free: 66.25 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.9122, allocations: 3.08 MB / 0.627 GB, free: 63.17 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/0.9156, allocations: 6.809 MB / 0.6336 GB, free: 54.58 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006588/0.9222, allocations: 10.59 MB / 0.6439 GB, free: 42.19 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.166e-05/0.9222, allocations: 36 kB / 0.644 GB, free: 42.16 MB / 458.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.009996/0.9322, allocations: 10.76 MB / 0.6545 GB, free: 31.33 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/0.9323, allocations: 59.94 kB / 0.6545 GB, free: 31.27 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.9324, allocations: 128 kB / 0.6547 GB, free: 31.15 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.9337, allocations: 0.9679 MB / 0.6556 GB, free: 30.17 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/0.9366, allocations: 1.821 MB / 0.6574 GB, free: 28.34 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006322/0.9429, allocations: 9.724 MB / 0.6669 GB, free: 18.31 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004321/0.9472, allocations: 443.7 kB / 0.6673 GB, free: 17.88 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/0.9478, allocations: 420 kB / 0.6677 GB, free: 17.47 MB / 458.8 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.006498/0.9543, allocations: 4.457 MB / 0.6721 GB, free: 13 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/0.9554, allocations: 0.5395 MB / 0.6726 GB, free: 12.45 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006807/0.9622, allocations: 6.47 MB / 0.6789 GB, free: 5.934 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.9623, allocations: 43.94 kB / 0.6789 GB, free: 5.891 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.9623, allocations: 15.88 kB / 0.679 GB, free: 5.875 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/0.9623, allocations: 19.92 kB / 0.679 GB, free: 5.855 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/0.9806, allocations: 13.47 MB / 0.6921 GB, free: 8.363 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.9806, allocations: 0 / 0.6921 GB, free: 8.363 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/0.9824, allocations: 0.7528 MB / 0.6929 GB, free: 7.609 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.9838, allocations: 0.789 MB / 0.6936 GB, free: 6.805 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/0.984, allocations: 91.92 kB / 0.6937 GB, free: 6.715 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.223/1.207, allocations: 8.84 MB / 0.7024 GB, free: 149.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/1.207, allocations: 4.281 kB / 0.7024 GB, free: 149.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.221, allocations: 9.501 MB / 0.7116 GB, free: 147.6 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002685/1.223, allocations: 1.001 MB / 0.7126 GB, free: 147.3 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005816/1.224, allocations: 75.64 kB / 0.7127 GB, free: 147.3 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.225, allocations: 220.9 kB / 0.7129 GB, free: 147.2 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005082/1.226, allocations: 276.8 kB / 0.7132 GB, free: 147.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.226, allocations: 113.2 kB / 0.7133 GB, free: 147.2 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.00445/1.231, allocations: 3.304 MB / 0.7165 GB, free: 146 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.81e-07/1.231, allocations: 0 / 0.7165 GB, free: 146 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006814/1.237, allocations: 1.978 MB / 0.7184 GB, free: 145.8 MB / 474.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%), (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.000638/1.238, allocations: 251.5 kB / 0.7187 GB, free: 145.6 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.009317/1.247, allocations: 7.594 MB / 0.7261 GB, free: 142.7 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.247, allocations: 0.8125 kB / 0.7261 GB, free: 142.7 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003123/1.25, allocations: 3.152 MB / 0.7292 GB, free: 141.3 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/1.254, allocations: 1.175 MB / 0.7303 GB, free: 140.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/1.279, allocations: 20.79 MB / 0.7506 GB, free: 124.1 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004354/1.283, allocations: 6.976 MB / 0.7574 GB, free: 118.9 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/1.284, allocations: 486 kB / 0.7579 GB, free: 118.4 MB / 474.8 MB Notification: Performance of SimCode: time 1.954e-06/1.284, allocations: 0 / 0.7579 GB, free: 118.4 MB / 474.8 MB Notification: Performance of Templates: time 0.5704/1.855, allocations: 480.4 MB / 1.227 GB, free: 15.04 MB / 490.8 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.346392571926117]