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.001837/0.001837, allocations: 102 kB / 21.93 MB, free: 5.195 MB / 14.72 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.001969/0.001969, allocations: 203.2 kB / 25.22 MB, free: 3.145 MB / 14.72 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.439/1.439, allocations: 207.7 MB / 236.1 MB, free: 9.773 MB / 190.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002685, allocations: 55.92 kB / 348.5 MB, free: 9.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2991, allocations: 49.15 MB / 397.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04236/0.3415, allocations: 34.29 MB / 431.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02876/0.3702, allocations: 10.27 MB / 442.2 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01135/0.3816, allocations: 322.1 kB / 442.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02308/0.4047, allocations: 8.053 MB / 450.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01614/0.4208, allocations: 3.706 MB / 454.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008654/0.4295, allocations: 2.355 MB / 456.6 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02268/0.4521, allocations: 13.51 MB / 470.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03461/0.4867, allocations: 17.23 MB / 487.4 MB, free: 9.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01522/0.502, allocations: 7.235 MB / 494.6 MB, free: 1.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01574/0.5177, allocations: 7.773 MB / 0.4906 GB, free: 9.953 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006939/0.5246, allocations: 1.988 MB / 0.4926 GB, free: 7.965 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009351/0.534, allocations: 2.359 MB / 0.4949 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007885/0.5419, allocations: 4.169 MB / 0.4989 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01512/0.557, allocations: 6.117 MB / 0.5049 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03843/0.5954, allocations: 26.6 MB / 0.5309 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.188e-05/0.5954, allocations: 4 kB / 0.5309 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5954, allocations: 0 / 0.5309 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009/0.5963, allocations: 0 / 0.5309 GB, free: 0.5977 MB / 446.1 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.05436/0.6507, allocations: 15.81 MB / 0.5463 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.6507, allocations: 11.98 kB / 0.5463 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05184/0.7026, allocations: 9.18 MB / 0.5553 GB, free: 7.461 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3894/1.092, allocations: 7.533 MB / 0.5627 GB, free: 127 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001522/1.093, allocations: 0.9467 MB / 0.5636 GB, free: 127 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005473/1.099, allocations: 1.24 MB / 0.5648 GB, free: 127 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05247/1.151, allocations: 20.38 MB / 0.5847 GB, free: 119.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008207/1.152, allocations: 23.61 kB / 0.5847 GB, free: 119.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004916/1.157, allocations: 0.5177 MB / 0.5852 GB, free: 118.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001301/1.158, allocations: 0.7285 MB / 0.5859 GB, free: 118.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03998/1.198, allocations: 18.9 MB / 0.6044 GB, free: 106.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1031/1.302, allocations: 53.68 MB / 0.6568 GB, free: 52.42 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02334/1.325, allocations: 14.72 MB / 0.6712 GB, free: 41.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005897/1.331, allocations: 3.725 MB / 0.6748 GB, free: 37.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0193/1.35, allocations: 10.04 MB / 0.6846 GB, free: 27.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/1.35, allocations: 69.31 kB / 0.6847 GB, free: 27.42 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 7.724e-06/1.35, allocations: 0 / 0.6847 GB, free: 27.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03514/1.385, allocations: 17.85 MB / 0.7021 GB, free: 10.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/1.385, allocations: 94.47 kB / 0.7022 GB, free: 9.969 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006983/1.392, allocations: 5.277 MB / 0.7074 GB, free: 4.812 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007544/1.393, allocations: 89.7 kB / 0.7075 GB, free: 4.719 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003462/1.397, allocations: 6.095 MB / 0.7134 GB, free: 14.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002269/1.399, allocations: 1.439 MB / 0.7148 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004321/1.403, allocations: 1.521 MB / 0.7163 GB, free: 11.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/1.403, allocations: 301.1 kB / 0.7166 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006292/1.41, allocations: 3.08 MB / 0.7196 GB, free: 8.273 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01066/1.42, allocations: 6.809 MB / 0.7262 GB, free: 15.68 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/1.437, allocations: 10.59 MB / 0.7366 GB, free: 3.297 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001638/1.437, allocations: 36 kB / 0.7366 GB, free: 3.262 MB / 0.4982 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02475/1.462, allocations: 10.77 MB / 0.7471 GB, free: 8.434 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002177/1.462, allocations: 60 kB / 0.7472 GB, free: 8.375 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/1.462, allocations: 124 kB / 0.7473 GB, free: 8.254 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002998/1.465, allocations: 0.9614 MB / 0.7483 GB, free: 7.277 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007183/1.473, allocations: 1.821 MB / 0.75 GB, free: 5.453 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/1.487, allocations: 9.72 MB / 0.7595 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007199/1.495, allocations: 451.7 kB / 0.76 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001973/1.497, allocations: 420 kB / 0.7604 GB, free: 10.55 MB / 0.5294 GB 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.01177/1.508, allocations: 4.453 MB / 0.7647 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002244/1.511, allocations: 0.5356 MB / 0.7652 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2408/1.752, allocations: 6.473 MB / 0.7715 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/1.752, allocations: 39.06 kB / 0.7716 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/1.752, allocations: 7.812 kB / 0.7716 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.694e-05/1.752, allocations: 22.7 kB / 0.7716 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02816/1.78, allocations: 13.47 MB / 0.7848 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.78, allocations: 3.062 kB / 0.7848 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003359/1.783, allocations: 0.7548 MB / 0.7855 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00225/1.785, allocations: 0.79 MB / 0.7863 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004391/1.786, allocations: 81.11 kB / 0.7864 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009339/1.795, allocations: 8.838 MB / 0.795 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.795, allocations: 8.25 kB / 0.795 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01284/1.808, allocations: 9.511 MB / 0.8043 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003266/1.811, allocations: 0.9979 MB / 0.8053 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/1.812, allocations: 75.25 kB / 0.8053 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/1.815, allocations: 221.3 kB / 0.8055 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005446/1.815, allocations: 288.4 kB / 0.8058 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/1.816, allocations: 115.1 kB / 0.8059 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005249/1.821, allocations: 3.299 MB / 0.8091 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.821, allocations: 0 / 0.8091 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008527/1.829, allocations: 1.974 MB / 0.8111 GB, free: 152.1 MB / 0.5294 GB 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.0008327/1.83, allocations: 250.4 kB / 0.8113 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.841, allocations: 7.602 MB / 0.8187 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.841, allocations: 0 / 0.8187 GB, free: 149 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004695/1.846, allocations: 3.154 MB / 0.8218 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00595/1.852, allocations: 1.181 MB / 0.823 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03341/1.885, allocations: 20.93 MB / 0.8434 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007198/1.892, allocations: 6.974 MB / 0.8502 GB, free: 122 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.894, allocations: 487.3 kB / 0.8507 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.623e-06/1.894, allocations: 0 / 0.8507 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.9019/2.796, allocations: 480.6 MB / 1.32 GB, free: 87.51 MB / 0.5607 GB " [Timeout remaining time 657] 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/jenkins1/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/jenkins1/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: 24.009910453110933]