Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009503/0.0009503, allocations: 173.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007806/0.0007805, allocations: 93.11 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003208, allocations: 12 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2217, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02947/0.2512, allocations: 35.11 MB / 410.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02221/0.2734, allocations: 9.802 MB / 420 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009224/0.2827, allocations: 251.1 kB / 420.3 MB, free: 3.418 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00709/0.2898, allocations: 1.662 MB / 421.9 MB, free: 1.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01269/0.3026, allocations: 3.039 MB / 425 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007022/0.3096, allocations: 1.561 MB / 426.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02032/0.3299, allocations: 14.47 MB / 441 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0414/0.3714, allocations: 23.7 MB / 464.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01009/0.3815, allocations: 4.987 MB / 469.7 MB, free: 1.777 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.3924, allocations: 5.965 MB / 475.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003732/0.3962, allocations: 0.7773 MB / 476.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006291/0.4025, allocations: 1.152 MB / 477.6 MB, free: 9.859 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00472/0.4073, allocations: 2.624 MB / 480.2 MB, free: 7.227 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01287/0.4202, allocations: 5.951 MB / 486.2 MB, free: 1.242 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.399/0.8192, allocations: 22.11 MB / 0.4964 GB, free: 37.46 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.8192, allocations: 0 / 0.4964 GB, free: 37.46 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8193, allocations: 3.125 kB / 0.4964 GB, free: 37.46 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0007631/0.82, allocations: 0 / 0.4964 GB, free: 37.46 MB / 378.8 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.03396/0.854, allocations: 12.85 MB / 0.5089 GB, free: 33.18 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.8541, allocations: 9.719 kB / 0.5089 GB, free: 33.18 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04472/0.8988, allocations: 9.144 MB / 0.5178 GB, free: 29.63 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01557/0.9144, allocations: 7.451 MB / 0.5251 GB, free: 27.61 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009128/0.9154, allocations: 0.9665 MB / 0.5261 GB, free: 27.57 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004927/0.9203, allocations: 1.245 MB / 0.5273 GB, free: 27.55 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04784/0.9682, allocations: 20.05 MB / 0.5469 GB, free: 15.45 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005418/0.9688, allocations: 18.95 kB / 0.5469 GB, free: 15.43 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004171/0.9729, allocations: 0.5117 MB / 0.5474 GB, free: 15.33 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006621/0.9736, allocations: 0.7309 MB / 0.5481 GB, free: 14.65 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03731/1.011, allocations: 18.87 MB / 0.5665 GB, free: 0.9414 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/1.127, allocations: 63.62 MB / 0.6287 GB, free: 0.7422 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2465/1.374, allocations: 56.91 MB / 0.6842 GB, free: 169.6 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007148/1.381, allocations: 4.113 MB / 0.6883 GB, free: 169.5 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01975/1.401, allocations: 11.41 MB / 0.6994 GB, free: 165 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/1.401, allocations: 74.72 kB / 0.6995 GB, free: 164.9 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 5.411e-06/1.401, allocations: 0 / 0.6995 GB, free: 164.9 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.03566/1.437, allocations: 18.13 MB / 0.7172 GB, free: 157.4 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/1.437, allocations: 93.5 kB / 0.7173 GB, free: 157.3 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008155/1.445, allocations: 5.417 MB / 0.7225 GB, free: 155.3 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006365/1.445, allocations: 88.94 kB / 0.7226 GB, free: 155.2 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002761/1.448, allocations: 5.886 MB / 0.7284 GB, free: 150.8 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.45, allocations: 1.372 MB / 0.7297 GB, free: 149.8 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003519/1.45, allocations: 156.5 kB / 0.7299 GB, free: 149.6 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003105/1.45, allocations: 0.6079 MB / 0.7305 GB, free: 149.2 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004108/1.454, allocations: 3.051 MB / 0.7334 GB, free: 146.7 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005518/1.46, allocations: 6.725 MB / 0.74 GB, free: 138.8 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/1.47, allocations: 10.56 MB / 0.7503 GB, free: 127.2 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.252e-05/1.47, allocations: 36 kB / 0.7504 GB, free: 127.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01584/1.486, allocations: 10.74 MB / 0.7608 GB, free: 116.7 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.706e-05/1.486, allocations: 56 kB / 0.7609 GB, free: 116.6 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001431/1.486, allocations: 128 kB / 0.761 GB, free: 116.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002128/1.489, allocations: 0.977 MB / 0.762 GB, free: 115.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005436/1.494, allocations: 1.813 MB / 0.7637 GB, free: 113.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/1.503, allocations: 9.549 MB / 0.7731 GB, free: 103.7 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006557/1.51, allocations: 439.1 kB / 0.7735 GB, free: 103.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.511, allocations: 420 kB / 0.7739 GB, free: 102.9 MB / 490.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007596/1.519, allocations: 4.457 MB / 0.7782 GB, free: 98.43 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.52, allocations: 0.544 MB / 0.7788 GB, free: 97.88 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009882/1.53, allocations: 6.503 MB / 0.7851 GB, free: 91.32 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/1.53, allocations: 40 kB / 0.7852 GB, free: 91.29 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/1.53, allocations: 11.94 kB / 0.7852 GB, free: 91.27 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/1.53, allocations: 23.92 kB / 0.7852 GB, free: 91.25 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02518/1.555, allocations: 15.95 MB / 0.8008 GB, free: 75.28 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/1.555, allocations: 4 kB / 0.8008 GB, free: 75.27 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002903/1.558, allocations: 0.7567 MB / 0.8015 GB, free: 74.52 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/1.56, allocations: 0.7846 MB / 0.8023 GB, free: 73.71 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002864/1.56, allocations: 95.84 kB / 0.8024 GB, free: 73.62 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007695/1.568, allocations: 8.655 MB / 0.8108 GB, free: 64.57 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.568, allocations: 7.938 kB / 0.8108 GB, free: 64.56 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.581, allocations: 9.492 MB / 0.8201 GB, free: 54.96 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002656/1.584, allocations: 1.099 MB / 0.8212 GB, free: 53.84 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.585, allocations: 71.98 kB / 0.8212 GB, free: 53.77 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002382/1.587, allocations: 227.8 kB / 0.8215 GB, free: 53.54 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005111/1.588, allocations: 262.7 kB / 0.8217 GB, free: 53.29 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002313/1.588, allocations: 112 kB / 0.8218 GB, free: 53.18 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005433/1.593, allocations: 3.56 MB / 0.8253 GB, free: 49.64 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.824e-06/1.593, allocations: 0 / 0.8253 GB, free: 49.64 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008676/1.602, allocations: 1.984 MB / 0.8272 GB, free: 47.66 MB / 490.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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008573/1.603, allocations: 253.3 kB / 0.8275 GB, free: 47.41 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01108/1.614, allocations: 8.021 MB / 0.8353 GB, free: 39.32 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.614, allocations: 4 kB / 0.8353 GB, free: 39.32 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005031/1.619, allocations: 3.527 MB / 0.8388 GB, free: 35.71 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009882/1.629, allocations: 1.226 MB / 0.8399 GB, free: 34.5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2271/1.856, allocations: 24.86 MB / 0.8642 GB, free: 169.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008618/1.865, allocations: 7.367 MB / 0.8714 GB, free: 168.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002014/1.867, allocations: 0.4894 MB / 0.8719 GB, free: 168.2 MB / 490.8 MB Notification: Performance of SimCode: time 9.72e-07/1.867, allocations: 0 / 0.8719 GB, free: 168.2 MB / 490.8 MB Notification: Performance of Templates: time 0.8468/2.714, allocations: 475.3 MB / 1.336 GB, free: 47.52 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches