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.001447/0.001447, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.367/1.367, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0007979/0.0007982, allocations: 90.69 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.176e-05/2.178e-05, allocations: 0 / 322.5 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07441/0.07444, allocations: 47.58 MB / 370.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3304/0.4049, allocations: 156.1 MB / 0.5138 GB, free: 2.211 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4052, allocations: 98.92 kB / 0.5139 GB, free: 2.156 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.31/1.715, allocations: 384.5 MB / 0.8894 GB, free: 33.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.716, allocations: 3.781 kB / 0.8895 GB, free: 33.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007022/1.716, allocations: 288 kB / 0.8897 GB, free: 33.54 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.03505/1.751, allocations: 11.06 MB / 0.9005 GB, free: 29.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/1.751, allocations: 7 kB / 0.9005 GB, free: 29.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03297/1.784, allocations: 6.34 MB / 0.9067 GB, free: 29.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02244/1.807, allocations: 9.442 MB / 0.9159 GB, free: 28.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009889/1.808, allocations: 0.9264 MB / 0.9168 GB, free: 28.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004398/1.812, allocations: 1.203 MB / 0.918 GB, free: 28.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04117/1.853, allocations: 20.32 MB / 0.9379 GB, free: 26.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003763/1.854, allocations: 26.59 kB / 0.9379 GB, free: 26.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00237/1.856, allocations: 0.5139 MB / 0.9384 GB, free: 26.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006843/1.857, allocations: 0.8407 MB / 0.9392 GB, free: 26.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03202/1.889, allocations: 18.39 MB / 0.9572 GB, free: 21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1122/2.001, allocations: 64.28 MB / 1.02 GB, free: 3.902 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3052/2.306, allocations: 46.11 MB / 1.065 GB, free: 24.73 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01391/2.32, allocations: 7.722 MB / 1.073 GB, free: 24.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04125/2.362, allocations: 23.52 MB / 1.095 GB, free: 23.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.632e-05/2.362, allocations: 97.11 kB / 1.096 GB, free: 23.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=760): time 9.207e-06/2.362, allocations: 0 / 1.096 GB, free: 23.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=800): time 0.04623/2.408, allocations: 26.61 MB / 1.122 GB, free: 20.11 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/2.408, allocations: 124.4 kB / 1.122 GB, free: 20.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005547/2.414, allocations: 3.565 MB / 1.125 GB, free: 18.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001738/2.415, allocations: 134.1 kB / 1.125 GB, free: 18.55 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002717/2.418, allocations: 4.921 MB / 1.13 GB, free: 14.85 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003155/2.421, allocations: 2.667 MB / 1.133 GB, free: 12.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006794/2.422, allocations: 165.1 kB / 1.133 GB, free: 12.66 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005521/2.423, allocations: 0.6658 MB / 1.134 GB, free: 12.19 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007256/2.43, allocations: 5.021 MB / 1.138 GB, free: 10.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009124/2.439, allocations: 7.416 MB / 1.146 GB, free: 5.141 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0093/2.448, allocations: 6.374 MB / 1.152 GB, free: 2.609 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-05/2.448, allocations: 24 kB / 1.152 GB, free: 2.609 MB / 474.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.02444/2.473, allocations: 15.46 MB / 1.167 GB, free: 12.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.002e-05/2.473, allocations: 37.56 kB / 1.167 GB, free: 12.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/2.473, allocations: 74 kB / 1.167 GB, free: 12.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007093/2.48, allocations: 4.103 MB / 1.171 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00661/2.487, allocations: 1.631 MB / 1.173 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/2.499, allocations: 12.18 MB / 1.185 GB, free: 3.453 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006478/2.506, allocations: 442.9 kB / 1.185 GB, free: 3.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/2.508, allocations: 390.6 kB / 1.185 GB, free: 2.914 MB / 490.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 791 * 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.002526/2.51, allocations: 0.5787 MB / 1.186 GB, free: 2.441 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002139/2.512, allocations: 0.5744 MB / 1.187 GB, free: 1.863 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04372/2.556, allocations: 15.4 MB / 1.202 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002218/2.556, allocations: 193.1 kB / 1.202 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.736e-05/2.556, allocations: 7.422 kB / 1.202 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001294/2.556, allocations: 32.77 kB / 1.202 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.342/2.898, allocations: 28.5 MB / 1.23 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.592e-05/2.898, allocations: 2.969 kB / 1.23 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005203/2.904, allocations: 1.032 MB / 1.231 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007242/2.911, allocations: 3.972 MB / 1.235 GB, free: 86.69 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00129/2.912, allocations: 174.4 kB / 1.235 GB, free: 86.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01052/2.923, allocations: 12.01 MB / 1.246 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/2.923, allocations: 6.312 kB / 1.246 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03008/2.953, allocations: 21.41 MB / 1.267 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004497/2.957, allocations: 1.733 MB / 1.269 GB, free: 80.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/2.959, allocations: 117.9 kB / 1.269 GB, free: 80.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003375/2.962, allocations: 333.5 kB / 1.269 GB, free: 80.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.963, allocations: 0.5655 MB / 1.27 GB, free: 80.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005129/2.964, allocations: 219.5 kB / 1.27 GB, free: 80.89 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003893/2.968, allocations: 2.651 MB / 1.273 GB, free: 80.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.1e-07/2.968, allocations: 0 / 1.273 GB, free: 80.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007631/2.975, allocations: 2.144 MB / 1.275 GB, free: 80.68 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 480 * 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.001443/2.977, allocations: 0.7098 MB / 1.276 GB, free: 80.55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01795/2.995, allocations: 12.86 MB / 1.288 GB, free: 78.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/2.995, allocations: 3.688 kB / 1.288 GB, free: 78.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01045/3.005, allocations: 6.67 MB / 1.295 GB, free: 75.39 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006492/3.012, allocations: 1.172 MB / 1.296 GB, free: 75.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03725/3.049, allocations: 21.84 MB / 1.317 GB, free: 66.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007983/3.057, allocations: 7.966 MB / 1.325 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006736/3.064, allocations: 1.964 MB / 1.327 GB, free: 62.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001432/3.065, allocations: 434.7 kB / 1.327 GB, free: 62.37 MB / 0.4948 GB Notification: Performance of SimCode: time 9.82e-07/3.065, allocations: 0 / 1.327 GB, free: 62.37 MB / 0.4948 GB Notification: Performance of Templates: time 0.4495/3.515, allocations: 122.3 MB / 1.447 GB, free: 70.23 MB / 0.4948 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/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