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.001813/0.001813, allocations: 83.73 kB / 22 MB, free: 5.18 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.002108/0.002108, allocations: 161.8 kB / 25.25 MB, free: 3.023 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.285/1.285, allocations: 158.6 MB / 187 MB, free: 6.238 MB / 174.1 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: 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.001789/0.001789, allocations: 55.92 kB / 299.4 MB, free: 6.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1947, allocations: 49.14 MB / 348.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04137/0.2361, allocations: 34.29 MB / 382.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02122/0.2573, allocations: 10.28 MB / 393.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004487/0.2618, allocations: 318.1 kB / 393.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01949/0.2813, allocations: 8.438 MB / 401.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.2915, allocations: 3.707 MB / 405.6 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005758/0.2972, allocations: 2.389 MB / 408 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01658/0.3138, allocations: 13.49 MB / 421.5 MB, free: 6.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02554/0.3393, allocations: 17.23 MB / 438.7 MB, free: 4.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00987/0.3492, allocations: 7.239 MB / 445.9 MB, free: 13.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01265/0.3619, allocations: 7.773 MB / 453.7 MB, free: 5.879 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003166/0.365, allocations: 1.988 MB / 455.7 MB, free: 3.891 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004511/0.3695, allocations: 2.359 MB / 458.1 MB, free: 1.531 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004188/0.3737, allocations: 4.165 MB / 462.2 MB, free: 13.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008083/0.3818, allocations: 6.12 MB / 468.3 MB, free: 7.211 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3316/0.7135, allocations: 26.6 MB / 494.9 MB, free: 43.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.7135, allocations: 0 / 494.9 MB, free: 43.89 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.7135, allocations: 0 / 494.9 MB, free: 43.89 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005147/0.714, allocations: 1.594 kB / 494.9 MB, free: 43.89 MB / 430.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.03708/0.7511, allocations: 15.81 MB / 0.4988 GB, free: 36.92 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.7511, allocations: 13.89 kB / 0.4988 GB, free: 36.92 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04805/0.7991, allocations: 9.189 MB / 0.5078 GB, free: 33.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0162/0.8153, allocations: 7.525 MB / 0.5151 GB, free: 29.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006088/0.816, allocations: 0.9442 MB / 0.516 GB, free: 28.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004252/0.8202, allocations: 1.249 MB / 0.5173 GB, free: 28.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04127/0.8615, allocations: 20.37 MB / 0.5372 GB, free: 8.715 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003483/0.8618, allocations: 27.89 kB / 0.5372 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002049/0.8639, allocations: 0.5083 MB / 0.5377 GB, free: 8.191 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005758/0.8644, allocations: 0.7332 MB / 0.5384 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03878/0.9032, allocations: 18.9 MB / 0.5569 GB, free: 4.547 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1027/1.006, allocations: 53.72 MB / 0.6093 GB, free: 14.73 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02728/1.033, allocations: 14.71 MB / 0.6237 GB, free: 3.438 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006296/1.039, allocations: 3.725 MB / 0.6273 GB, free: 15.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01999/1.059, allocations: 10.04 MB / 0.6371 GB, free: 5.809 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.66e-05/1.06, allocations: 72.88 kB / 0.6372 GB, free: 5.73 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.991e-06/1.06, allocations: 3.938 kB / 0.6372 GB, free: 5.727 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.04046/1.1, allocations: 17.86 MB / 0.6546 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/1.1, allocations: 96.88 kB / 0.6547 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007789/1.108, allocations: 5.262 MB / 0.6599 GB, free: 14.55 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002812/1.108, allocations: 89.7 kB / 0.66 GB, free: 14.46 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004488/1.113, allocations: 6.106 MB / 0.6659 GB, free: 8.344 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.114, allocations: 1.439 MB / 0.6673 GB, free: 6.922 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002354/1.116, allocations: 1.517 MB / 0.6688 GB, free: 5.398 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001184/1.116, allocations: 301.1 kB / 0.6691 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005063/1.121, allocations: 3.08 MB / 0.6721 GB, free: 2.02 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1882/1.31, allocations: 6.798 MB / 0.6787 GB, free: 193.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009705/1.319, allocations: 10.6 MB / 0.6891 GB, free: 188.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.743e-05/1.32, allocations: 35.53 kB / 0.6891 GB, free: 188.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01412/1.334, allocations: 10.76 MB / 0.6996 GB, free: 184 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.677e-05/1.334, allocations: 57.03 kB / 0.6997 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/1.334, allocations: 128.2 kB / 0.6998 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002198/1.336, allocations: 0.972 MB / 0.7007 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005214/1.341, allocations: 1.816 MB / 0.7025 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009229/1.35, allocations: 9.724 MB / 0.712 GB, free: 177.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/1.356, allocations: 450.5 kB / 0.7124 GB, free: 176.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005511/1.356, allocations: 421.6 kB / 0.7128 GB, free: 176.4 MB / 0.545 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.005565/1.362, allocations: 4.461 MB / 0.7172 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009072/1.363, allocations: 0.5347 MB / 0.7177 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008887/1.371, allocations: 6.466 MB / 0.724 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/1.371, allocations: 40 kB / 0.7241 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/1.371, allocations: 8 kB / 0.7241 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/1.372, allocations: 22.41 kB / 0.7241 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/1.391, allocations: 13.49 MB / 0.7373 GB, free: 155.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.391, allocations: 4 kB / 0.7373 GB, free: 155.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.394, allocations: 0.7514 MB / 0.738 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/1.395, allocations: 0.7886 MB / 0.7388 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/1.396, allocations: 87.94 kB / 0.7389 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007997/1.404, allocations: 8.847 MB / 0.7475 GB, free: 146.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/1.404, allocations: 7.938 kB / 0.7475 GB, free: 146.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.415, allocations: 9.501 MB / 0.7568 GB, free: 137.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/1.417, allocations: 0.9998 MB / 0.7578 GB, free: 136.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005682/1.417, allocations: 77.16 kB / 0.7578 GB, free: 136.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/1.42, allocations: 227.8 kB / 0.7581 GB, free: 136.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004398/1.42, allocations: 278.5 kB / 0.7583 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/1.42, allocations: 108 kB / 0.7584 GB, free: 135.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00372/1.424, allocations: 3.3 MB / 0.7617 GB, free: 132.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.424, allocations: 0 / 0.7617 GB, free: 132.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005834/1.43, allocations: 1.976 MB / 0.7636 GB, free: 130.6 MB / 0.545 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.0004368/1.43, allocations: 256.4 kB / 0.7638 GB, free: 130.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009414/1.44, allocations: 7.589 MB / 0.7712 GB, free: 122.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/1.44, allocations: 4.062 kB / 0.7712 GB, free: 122.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003942/1.444, allocations: 3.143 MB / 0.7743 GB, free: 119.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004636/1.448, allocations: 1.176 MB / 0.7755 GB, free: 118.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/1.476, allocations: 21.19 MB / 0.7962 GB, free: 97.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006095/1.482, allocations: 7.202 MB / 0.8032 GB, free: 89.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005258/1.487, allocations: 2.318 MB / 0.8055 GB, free: 87.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/1.488, allocations: 420.4 kB / 0.8059 GB, free: 87.2 MB / 0.545 GB Notification: Performance of SimCode: time 8.71e-07/1.488, allocations: 0 / 0.8059 GB, free: 87.2 MB / 0.545 GB Notification: Performance of Templates: time 0.103/1.591, allocations: 66.3 MB / 0.8706 GB, free: 20.89 MB / 0.545 GB " [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 -s ida -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: 8.191018226905726]