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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009002/0.0009002, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.296/1.296, allocations: 205.4 MB / 224.2 MB, free: 9.047 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.0007715/0.0007716, allocations: 90.33 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003111, allocations: 15.98 kB / 329.5 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2195, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.324/0.5436, allocations: 156.9 MB / 0.5214 GB, free: 99.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5439, allocations: 111 kB / 0.5215 GB, free: 99.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.108/1.652, allocations: 382.6 MB / 0.8952 GB, free: 38.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.652, allocations: 0 / 0.8952 GB, free: 38.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009054/1.653, allocations: 296.6 kB / 0.8955 GB, free: 38.31 MB / 442.7 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.03544/1.689, allocations: 11.57 MB / 0.9068 GB, free: 34.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/1.689, allocations: 14.72 kB / 0.9068 GB, free: 34.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03382/1.723, allocations: 6.372 MB / 0.913 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.743, allocations: 8.866 MB / 0.9217 GB, free: 32.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/1.744, allocations: 0.9238 MB / 0.9226 GB, free: 31.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004637/1.749, allocations: 1.204 MB / 0.9237 GB, free: 31.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04345/1.792, allocations: 20.65 MB / 0.9439 GB, free: 18.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005653/1.793, allocations: 31.53 kB / 0.9439 GB, free: 18.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003772/1.797, allocations: 0.513 MB / 0.9444 GB, free: 18.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007796/1.798, allocations: 0.8379 MB / 0.9452 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04199/1.84, allocations: 18.68 MB / 0.9635 GB, free: 1.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3532/2.193, allocations: 64.06 MB / 1.026 GB, free: 34.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03706/2.23, allocations: 45.86 MB / 1.071 GB, free: 31.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01169/2.242, allocations: 7.81 MB / 1.078 GB, free: 31.24 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03616/2.278, allocations: 23.54 MB / 1.101 GB, free: 23.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.827e-05/2.278, allocations: 104.9 kB / 1.102 GB, free: 23.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=761): time 8.697e-06/2.278, allocations: 2.781 kB / 1.102 GB, free: 23.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=801): time 0.08786/2.366, allocations: 41.89 MB / 1.142 GB, free: 7.605 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/2.366, allocations: 121.6 kB / 1.143 GB, free: 7.535 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005662/2.372, allocations: 4.073 MB / 1.147 GB, free: 6.012 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001146/2.373, allocations: 137.4 kB / 1.147 GB, free: 5.898 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003057/2.376, allocations: 4.92 MB / 1.151 GB, free: 2.199 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003392/2.379, allocations: 2.659 MB / 1.154 GB, free: 0 / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/2.381, allocations: 208.7 kB / 1.154 GB, free: 0 / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006359/2.381, allocations: 0.6671 MB / 1.155 GB, free: 15.43 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008522/2.39, allocations: 5.101 MB / 1.16 GB, free: 11.05 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0133/2.403, allocations: 7.535 MB / 1.167 GB, free: 3.359 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.263/2.666, allocations: 14.8 MB / 1.182 GB, free: 98.03 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-05/2.666, allocations: 21.44 kB / 1.182 GB, free: 98.03 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02437/2.691, allocations: 15.64 MB / 1.197 GB, free: 97.72 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 7.199e-05/2.691, allocations: 36.59 kB / 1.197 GB, free: 97.72 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/2.691, allocations: 73.94 kB / 1.197 GB, free: 97.72 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006971/2.698, allocations: 4.131 MB / 1.201 GB, free: 97.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006815/2.705, allocations: 1.626 MB / 1.203 GB, free: 97.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/2.716, allocations: 12.23 MB / 1.215 GB, free: 93 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005801/2.722, allocations: 445.1 kB / 1.215 GB, free: 93 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/2.724, allocations: 389.1 kB / 1.215 GB, free: 93 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (848): * Single equations (assignments): 792 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.00858/2.732, allocations: 4.398 MB / 1.22 GB, free: 92.88 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001471/2.734, allocations: 0.5789 MB / 1.22 GB, free: 92.88 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02123/2.755, allocations: 14.34 MB / 1.234 GB, free: 92.25 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001554/2.755, allocations: 194.9 kB / 1.235 GB, free: 92.15 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/2.755, allocations: 3.031 kB / 1.235 GB, free: 92.15 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.123e-05/2.755, allocations: 35.98 kB / 1.235 GB, free: 92.15 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04452/2.8, allocations: 28.67 MB / 1.263 GB, free: 79.82 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.435e-05/2.8, allocations: 3.344 kB / 1.263 GB, free: 79.82 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004471/2.804, allocations: 1.031 MB / 1.264 GB, free: 79.79 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006372/2.811, allocations: 4.019 MB / 1.268 GB, free: 78.54 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009793/2.812, allocations: 164 kB / 1.268 GB, free: 78.45 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00998/2.822, allocations: 12.04 MB / 1.279 GB, free: 70.59 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/2.822, allocations: 6.375 kB / 1.279 GB, free: 70.59 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02848/2.85, allocations: 21.36 MB / 1.3 GB, free: 55.85 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004061/2.854, allocations: 1.739 MB / 1.302 GB, free: 54.28 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/2.856, allocations: 116 kB / 1.302 GB, free: 54.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003424/2.859, allocations: 325.3 kB / 1.302 GB, free: 53.94 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.86, allocations: 0.5624 MB / 1.303 GB, free: 53.58 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005032/2.861, allocations: 227.3 kB / 1.303 GB, free: 53.38 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003728/2.864, allocations: 2.696 MB / 1.306 GB, free: 51.14 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.21e-07/2.864, allocations: 0 / 1.306 GB, free: 51.14 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007505/2.872, allocations: 2.148 MB / 1.308 GB, free: 49.01 MB / 0.4949 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 (537): * Single equations (assignments): 481 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00148/2.873, allocations: 0.6197 MB / 1.309 GB, free: 48.58 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01927/2.893, allocations: 13.01 MB / 1.321 GB, free: 37.29 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/2.893, allocations: 0 / 1.321 GB, free: 37.29 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01158/2.904, allocations: 6.748 MB / 1.328 GB, free: 31.38 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01018/2.915, allocations: 1.264 MB / 1.329 GB, free: 30.38 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2673/3.182, allocations: 29.41 MB / 1.358 GB, free: 88.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01174/3.194, allocations: 7.773 MB / 1.365 GB, free: 87.1 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.0071/3.201, allocations: 1.962 MB / 1.367 GB, free: 87.04 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/3.202, allocations: 436.7 kB / 1.368 GB, free: 87.04 MB / 0.4949 GB Notification: Performance of SimCode: time 8.61e-07/3.202, allocations: 0 / 1.368 GB, free: 87.04 MB / 0.4949 GB Notification: Performance of Templates: time 0.1749/3.377, allocations: 129.3 MB / 1.494 GB, free: 34.8 MB / 0.4949 GB 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/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","../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