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.002565/0.002565, allocations: 99.53 kB / 20.96 MB, free: 3.457 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.0032/0.0032, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 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 1.721/1.721, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 272.3 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.573e-05, allocations: 6.312 kB / 272.3 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1825/0.1826, allocations: 39.06 MB / 311.3 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01973/0.2023, allocations: 10.6 MB / 321.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008043/0.2103, allocations: 370.5 kB / 322.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02233/0.2327, allocations: 9.088 MB / 331.4 MB, free: 7.441 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01308/0.2457, allocations: 3.581 MB / 334.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007469/0.2532, allocations: 2.38 MB / 337.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02022/0.2734, allocations: 13.52 MB / 350.8 MB, free: 3.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03138/0.3048, allocations: 17.18 MB / 368 MB, free: 2.551 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01993/0.3247, allocations: 10.41 MB / 378.4 MB, free: 8.129 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01571/0.3405, allocations: 7.415 MB / 385.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006187/0.3466, allocations: 1.949 MB / 387.8 MB, free: 14.75 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008222/0.3549, allocations: 2.354 MB / 390.2 MB, free: 12.39 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00691/0.3618, allocations: 4.114 MB / 394.3 MB, free: 8.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01399/0.3758, allocations: 5.146 MB / 399.4 MB, free: 3.113 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.042/0.4178, allocations: 26.41 MB / 425.8 MB, free: 8.629 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.4178, allocations: 4 kB / 425.8 MB, free: 8.625 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4178, allocations: 0 / 425.8 MB, free: 8.625 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000791/0.4186, allocations: 0 / 425.8 MB, free: 8.625 MB / 378.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.2795/0.698, allocations: 17.42 MB / 443.3 MB, free: 106.5 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.6981, allocations: 13.2 kB / 443.3 MB, free: 106.5 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03996/0.738, allocations: 7.881 MB / 451.2 MB, free: 104.3 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02087/0.7589, allocations: 7.757 MB / 458.9 MB, free: 97.61 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00129/0.7602, allocations: 0.8991 MB / 459.8 MB, free: 96.72 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00604/0.7662, allocations: 1.202 MB / 461 MB, free: 95.53 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05451/0.8207, allocations: 19.16 MB / 480.2 MB, free: 76.24 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000868/0.8216, allocations: 27.83 kB / 480.2 MB, free: 76.21 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005051/0.8267, allocations: 499.3 kB / 480.7 MB, free: 75.73 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005769/0.8272, allocations: 0.6382 MB / 481.3 MB, free: 75.09 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03576/0.863, allocations: 14.75 MB / 496.1 MB, free: 60.32 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1324/0.9954, allocations: 86.31 MB / 0.5687 GB, free: 2.605 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/1.018, allocations: 9.633 MB / 0.5781 GB, free: 10.58 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006932/1.025, allocations: 2.917 MB / 0.581 GB, free: 7.648 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1813/1.206, allocations: 7.815 MB / 0.5886 GB, free: 126.6 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/1.206, allocations: 72.33 kB / 0.5887 GB, free: 126.6 MB / 426.8 MB Notification: Performance of pre-optimization done (n=349): time 7.754e-06/1.206, allocations: 0.9688 kB / 0.5887 GB, free: 126.6 MB / 426.8 MB Notification: Performance of matching and sorting (n=389): time 0.03377/1.24, allocations: 14.91 MB / 0.6033 GB, free: 125 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/1.24, allocations: 92.84 kB / 0.6033 GB, free: 125 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008802/1.249, allocations: 6.727 MB / 0.6099 GB, free: 124.4 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000748/1.249, allocations: 89.92 kB / 0.61 GB, free: 124.4 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003574/1.253, allocations: 6.261 MB / 0.6161 GB, free: 121.7 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001655/1.255, allocations: 1.546 MB / 0.6176 GB, free: 120.8 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002413/1.257, allocations: 1.737 MB / 0.6193 GB, free: 120.6 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 7.371e-05/1.257, allocations: 484.4 kB / 0.6198 GB, free: 120.2 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/1.261, allocations: 2.311 MB / 0.622 GB, free: 120.1 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005944/1.267, allocations: 7.049 MB / 0.6289 GB, free: 113.4 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009752/1.277, allocations: 10.25 MB / 0.6389 GB, free: 105.1 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.277, allocations: 31.25 kB / 0.639 GB, free: 105.1 MB / 426.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01471/1.291, allocations: 9.048 MB / 0.6478 GB, free: 100.7 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/1.291, allocations: 44.77 kB / 0.6478 GB, free: 100.6 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/1.292, allocations: 100 kB / 0.6479 GB, free: 100.5 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003131/1.295, allocations: 1.125 MB / 0.649 GB, free: 99.4 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005881/1.301, allocations: 1.587 MB / 0.6506 GB, free: 97.81 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/1.311, allocations: 11.37 MB / 0.6617 GB, free: 86.09 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005543/1.317, allocations: 403.6 kB / 0.6621 GB, free: 85.7 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.318, allocations: 359.9 kB / 0.6624 GB, free: 85.34 MB / 426.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.006481/1.324, allocations: 3.843 MB / 0.6662 GB, free: 81.48 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001562/1.326, allocations: 0.6334 MB / 0.6668 GB, free: 80.85 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009317/1.335, allocations: 5.395 MB / 0.6721 GB, free: 75.42 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/1.335, allocations: 43.98 kB / 0.6721 GB, free: 75.38 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/1.335, allocations: 8 kB / 0.6721 GB, free: 75.37 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.881e-05/1.335, allocations: 23.86 kB / 0.6721 GB, free: 75.35 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03009/1.365, allocations: 16.82 MB / 0.6885 GB, free: 58.5 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/1.365, allocations: 0 / 0.6885 GB, free: 58.5 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.369, allocations: 0.7489 MB / 0.6893 GB, free: 57.75 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002812/1.371, allocations: 0.9701 MB / 0.6902 GB, free: 56.76 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005519/1.372, allocations: 87.97 kB / 0.6903 GB, free: 56.67 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009019/1.381, allocations: 10.54 MB / 0.7006 GB, free: 45.78 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.381, allocations: 8.062 kB / 0.7006 GB, free: 45.77 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/1.393, allocations: 7.876 MB / 0.7083 GB, free: 37.76 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00305/1.396, allocations: 0.9142 MB / 0.7092 GB, free: 36.84 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001055/1.397, allocations: 76 kB / 0.7093 GB, free: 36.77 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002637/1.4, allocations: 215.8 kB / 0.7095 GB, free: 36.56 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005583/1.4, allocations: 282.5 kB / 0.7097 GB, free: 36.28 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.401, allocations: 116 kB / 0.7099 GB, free: 36.17 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00473/1.405, allocations: 3.435 MB / 0.7132 GB, free: 32.74 MB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/1.405, allocations: 4 kB / 0.7132 GB, free: 32.73 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008146/1.413, allocations: 1.875 MB / 0.715 GB, free: 30.86 MB / 426.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.0009393/1.414, allocations: 270.1 kB / 0.7153 GB, free: 30.59 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01149/1.426, allocations: 7.075 MB / 0.7222 GB, free: 23.45 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.426, allocations: 4 kB / 0.7222 GB, free: 23.45 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005101/1.431, allocations: 3.163 MB / 0.7253 GB, free: 20.21 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007036/1.438, allocations: 1.205 MB / 0.7265 GB, free: 19.07 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2032/1.641, allocations: 18.8 MB / 0.7448 GB, free: 106.6 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01422/1.655, allocations: 6.342 MB / 0.751 GB, free: 106.1 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.005816/1.661, allocations: 1.809 MB / 0.7528 GB, free: 106 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/1.663, allocations: 409 kB / 0.7532 GB, free: 106 MB / 426.8 MB Notification: Performance of SimCode: time 2.374e-06/1.663, allocations: 0 / 0.7532 GB, free: 106 MB / 426.8 MB Notification: Performance of Templates: time 0.1103/1.773, allocations: 65.03 MB / 0.8167 GB, free: 64.59 MB / 426.8 MB " [Timeout remaining time 658] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.084959389991127]