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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 108.8 kB / 17.28 MB, free: 6.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 189.3 kB / 18.2 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 51.92 kB / 280.2 MB, free: 3.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08166/0.08281, allocations: 46.63 MB / 326.8 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03843/0.1213, allocations: 39.29 MB / 366.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02064/0.1419, allocations: 10.39 MB / 376.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0071/0.1491, allocations: 247.1 kB / 376.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1646/0.3137, allocations: 8.02 MB / 384.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.3241, allocations: 3.271 MB / 388 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006006/0.3301, allocations: 2.205 MB / 390.2 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01596/0.3461, allocations: 13.43 MB / 403.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03518/0.3813, allocations: 28.82 MB / 432.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01019/0.3915, allocations: 7.032 MB / 439.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01177/0.4033, allocations: 8.119 MB / 447.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005268/0.4086, allocations: 1.988 MB / 449.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007162/0.4158, allocations: 2.389 MB / 452 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003931/0.4197, allocations: 4.165 MB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/0.4312, allocations: 7.823 MB / 464 MB, free: 4.977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02498/0.4562, allocations: 26.23 MB / 490.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.4563, allocations: 11.98 kB / 490.2 MB, free: 11.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4563, allocations: 0 / 490.2 MB, free: 11.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007834/0.4571, allocations: 4 kB / 490.2 MB, free: 11.2 MB / 398.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.0426/0.4997, allocations: 15.63 MB / 0.494 GB, free: 11.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.4998, allocations: 8.031 kB / 0.494 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04803/0.5478, allocations: 9.091 MB / 0.5029 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01897/0.5668, allocations: 7.46 MB / 0.5102 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001138/0.568, allocations: 0.9434 MB / 0.5111 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004703/0.5727, allocations: 1.249 MB / 0.5123 GB, free: 8.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04657/0.6193, allocations: 20.15 MB / 0.532 GB, free: 4.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000541/0.6199, allocations: 23.8 kB / 0.532 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003744/0.6237, allocations: 0.518 MB / 0.5325 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007362/0.6244, allocations: 0.7333 MB / 0.5332 GB, free: 3.469 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3247/0.9491, allocations: 18.97 MB / 0.5518 GB, free: 137 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0861/1.035, allocations: 63.41 MB / 0.6137 GB, free: 87.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.029/1.064, allocations: 56.99 MB / 0.6693 GB, free: 23.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00595/1.07, allocations: 4.125 MB / 0.6734 GB, free: 19.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01833/1.089, allocations: 11.39 MB / 0.6845 GB, free: 7.727 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/1.089, allocations: 73.25 kB / 0.6846 GB, free: 7.645 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.691e-06/1.089, allocations: 0 / 0.6846 GB, free: 7.645 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03517/1.124, allocations: 18.12 MB / 0.7022 GB, free: 5.398 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/1.124, allocations: 98.45 kB / 0.7023 GB, free: 5.289 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1856/1.31, allocations: 5.453 MB / 0.7077 GB, free: 146.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007741/1.31, allocations: 87.77 kB / 0.7077 GB, free: 146.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004158/1.315, allocations: 5.886 MB / 0.7135 GB, free: 144.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001578/1.316, allocations: 1.373 MB / 0.7148 GB, free: 143.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00332/1.32, allocations: 1.507 MB / 0.7163 GB, free: 142.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.873e-05/1.32, allocations: 303.2 kB / 0.7166 GB, free: 142.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004513/1.324, allocations: 3.079 MB / 0.7196 GB, free: 141.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005649/1.33, allocations: 6.756 MB / 0.7262 GB, free: 135.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009384/1.339, allocations: 10.59 MB / 0.7366 GB, free: 127.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.339, allocations: 35.56 kB / 0.7366 GB, free: 127.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01499/1.354, allocations: 10.79 MB / 0.7471 GB, free: 122.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/1.354, allocations: 58.97 kB / 0.7472 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/1.355, allocations: 133.1 kB / 0.7473 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/1.357, allocations: 0.9764 MB / 0.7483 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005957/1.363, allocations: 1.818 MB / 0.75 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009545/1.372, allocations: 10.24 MB / 0.76 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005647/1.378, allocations: 445.6 kB / 0.7605 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/1.379, allocations: 419.7 kB / 0.7609 GB, free: 115.1 MB / 462.1 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.006573/1.386, allocations: 4.46 MB / 0.7652 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/1.387, allocations: 0.5517 MB / 0.7658 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009791/1.397, allocations: 6.505 MB / 0.7721 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/1.397, allocations: 50.47 kB / 0.7722 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.397, allocations: 8 kB / 0.7722 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.03e-05/1.397, allocations: 20.77 kB / 0.7722 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.421, allocations: 15.97 MB / 0.7878 GB, free: 94.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/1.421, allocations: 3.984 kB / 0.7878 GB, free: 94.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/1.424, allocations: 0.7528 MB / 0.7885 GB, free: 93.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.426, allocations: 0.7964 MB / 0.7893 GB, free: 92.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003848/1.426, allocations: 89.08 kB / 0.7894 GB, free: 92.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008238/1.434, allocations: 9.348 MB / 0.7985 GB, free: 82.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/1.435, allocations: 4 kB / 0.7985 GB, free: 82.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/1.447, allocations: 9.524 MB / 0.8078 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.449, allocations: 1.08 MB / 0.8089 GB, free: 71.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001289/1.451, allocations: 70.88 kB / 0.8089 GB, free: 71.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002886/1.454, allocations: 227.7 kB / 0.8092 GB, free: 71.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005929/1.454, allocations: 258.7 kB / 0.8094 GB, free: 71.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/1.455, allocations: 120 kB / 0.8095 GB, free: 71.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005366/1.46, allocations: 3.603 MB / 0.813 GB, free: 67.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.46, allocations: 0 / 0.813 GB, free: 67.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006582/1.466, allocations: 1.983 MB / 0.815 GB, free: 65.68 MB / 462.1 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.0006106/1.467, allocations: 250 kB / 0.8152 GB, free: 65.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02668/1.494, allocations: 13.51 MB / 0.8284 GB, free: 51.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.494, allocations: 0 / 0.8284 GB, free: 51.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005271/1.499, allocations: 3.538 MB / 0.8319 GB, free: 48.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009059/1.508, allocations: 1.313 MB / 0.8331 GB, free: 47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03833/1.547, allocations: 26.23 MB / 0.8588 GB, free: 20.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007262/1.554, allocations: 7.598 MB / 0.8662 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006562/1.56, allocations: 2.359 MB / 0.8685 GB, free: 10.74 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/1.562, allocations: 427.4 kB / 0.8689 GB, free: 10.32 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/1.562, allocations: 4 kB / 0.8689 GB, free: 10.32 MB / 462.1 MB Notification: Performance of Templates: time 0.3126/1.874, allocations: 78.42 MB / 0.9455 GB, free: 89.27 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches