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.002478/0.002478, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002842/0.002842, allocations: 166.8 kB / 25.03 MB, free: 8.418 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 1.335/1.335, allocations: 158.6 MB / 186.8 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 178] 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.934e-06/1.934e-06, allocations: 0 / 250.4 MB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.202e-05/3.396e-05, allocations: 6.25 kB / 250.4 MB, free: 7.77 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05365/0.05369, allocations: 38.95 MB / 289.4 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02511/0.07879, allocations: 10.5 MB / 299.9 MB, free: 6.129 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007113/0.0859, allocations: 322.1 kB / 300.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02434/0.1102, allocations: 9.107 MB / 309.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01365/0.1239, allocations: 3.798 MB / 313.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00811/0.132, allocations: 2.432 MB / 315.5 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02177/0.1538, allocations: 13.94 MB / 329.5 MB, free: 8.402 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03355/0.1873, allocations: 17.31 MB / 346.8 MB, free: 6.938 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1501/0.3374, allocations: 10.72 MB / 357.5 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0112/0.3486, allocations: 7.719 MB / 365.2 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004208/0.3528, allocations: 1.986 MB / 367.2 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006043/0.3588, allocations: 2.382 MB / 369.6 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003999/0.3628, allocations: 4.315 MB / 373.9 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009566/0.3724, allocations: 5.318 MB / 379.2 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0238/0.3962, allocations: 26.94 MB / 406.2 MB, free: 20.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.3962, allocations: 1.344 kB / 406.2 MB, free: 20.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3962, allocations: 0 / 406.2 MB, free: 20.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006969/0.3969, allocations: 0 / 406.2 MB, free: 20.62 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.04092/0.4378, allocations: 18.06 MB / 424.2 MB, free: 4.457 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4379, allocations: 11.98 kB / 424.2 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05275/0.4906, allocations: 11.35 MB / 435.6 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/0.5111, allocations: 7.02 MB / 442.6 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001138/0.5122, allocations: 0.944 MB / 443.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004781/0.517, allocations: 1.248 MB / 444.8 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05308/0.5701, allocations: 20.46 MB / 465.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004115/0.5705, allocations: 25.17 kB / 465.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002401/0.5729, allocations: 0.5097 MB / 465.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009063/0.5738, allocations: 0.7332 MB / 466.5 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04153/0.6153, allocations: 16.62 MB / 483.1 MB, free: 9.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2655/0.8808, allocations: 93.66 MB / 0.5633 GB, free: 94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0228/0.9036, allocations: 13.97 MB / 0.5769 GB, free: 83.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004673/0.9083, allocations: 3.174 MB / 0.58 GB, free: 80.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01783/0.9261, allocations: 9.89 MB / 0.5897 GB, free: 70.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.9261, allocations: 72.14 kB / 0.5898 GB, free: 70.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=349): time 6.152e-06/0.9262, allocations: 0 / 0.5898 GB, free: 70.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=389): time 0.03058/0.9567, allocations: 15.53 MB / 0.6049 GB, free: 54.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.9568, allocations: 94.47 kB / 0.605 GB, free: 54.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008332/0.9651, allocations: 7.296 MB / 0.6121 GB, free: 47.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000526/0.9656, allocations: 89.7 kB / 0.6122 GB, free: 47.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002878/0.9685, allocations: 6.745 MB / 0.6188 GB, free: 40.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.9698, allocations: 1.564 MB / 0.6203 GB, free: 39.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002307/0.9721, allocations: 1.96 MB / 0.6223 GB, free: 37.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.067e-05/0.9722, allocations: 480.8 kB / 0.6227 GB, free: 36.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.9754, allocations: 2.431 MB / 0.6251 GB, free: 34.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005225/0.9806, allocations: 8.234 MB / 0.6331 GB, free: 23.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.9908, allocations: 11.66 MB / 0.6445 GB, free: 9.535 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001592/0.9909, allocations: 40 kB / 0.6445 GB, free: 9.496 MB / 410.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.1571/1.148, allocations: 9.926 MB / 0.6542 GB, free: 114 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/1.148, allocations: 61.72 kB / 0.6543 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002585/1.148, allocations: 126.9 kB / 0.6544 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003152/1.152, allocations: 1.144 MB / 0.6555 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00644/1.158, allocations: 1.818 MB / 0.6573 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/1.169, allocations: 11.43 MB / 0.6685 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006224/1.176, allocations: 448.6 kB / 0.6689 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.177, allocations: 416.5 kB / 0.6693 GB, free: 108.5 MB / 410.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.007329/1.184, allocations: 4.006 MB / 0.6732 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/1.186, allocations: 0.6543 MB / 0.6739 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009728/1.196, allocations: 5.443 MB / 0.6792 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-05/1.196, allocations: 40.88 kB / 0.6792 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/1.196, allocations: 7.75 kB / 0.6792 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.737e-05/1.196, allocations: 24.47 kB / 0.6792 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03744/1.233, allocations: 17.08 MB / 0.6959 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.222e-05/1.233, allocations: 3.75 kB / 0.6959 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004738/1.238, allocations: 0.7593 MB / 0.6967 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004171/1.242, allocations: 0.9523 MB / 0.6976 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006989/1.243, allocations: 81.47 kB / 0.6977 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.256, allocations: 10.56 MB / 0.708 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/1.256, allocations: 0 / 0.708 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01729/1.273, allocations: 7.894 MB / 0.7157 GB, free: 90.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00309/1.276, allocations: 0.9298 MB / 0.7166 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008879/1.277, allocations: 77.56 kB / 0.7167 GB, free: 89.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/1.28, allocations: 227.8 kB / 0.7169 GB, free: 89.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006292/1.28, allocations: 274.5 kB / 0.7171 GB, free: 88.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002479/1.281, allocations: 112 kB / 0.7173 GB, free: 88.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005598/1.286, allocations: 3.664 MB / 0.7208 GB, free: 85.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.286, allocations: 0 / 0.7208 GB, free: 85.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00877/1.295, allocations: 1.985 MB / 0.7228 GB, free: 83.25 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%), (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.0008332/1.296, allocations: 254.7 kB / 0.723 GB, free: 83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01186/1.308, allocations: 7.468 MB / 0.7303 GB, free: 75.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.308, allocations: 4 kB / 0.7303 GB, free: 75.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00463/1.312, allocations: 3.145 MB / 0.7334 GB, free: 72.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005891/1.318, allocations: 1.219 MB / 0.7346 GB, free: 71.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03241/1.351, allocations: 19.86 MB / 0.754 GB, free: 51.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007188/1.358, allocations: 6.603 MB / 0.7604 GB, free: 44.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005526/1.363, allocations: 1.997 MB / 0.7624 GB, free: 42.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/1.364, allocations: 416.4 kB / 0.7628 GB, free: 42.11 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/1.364, allocations: 4 kB / 0.7628 GB, free: 42.1 MB / 410.7 MB Notification: Performance of Templates: time 0.2416/1.606, allocations: 65.91 MB / 0.8271 GB, free: 100.1 MB / 410.7 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=240 -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","/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: 8.672259145998396]