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.001047/0.001047, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.222/1.222, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008771/0.0008771, allocations: 96.14 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002275, allocations: 8 kB / 328.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2003, allocations: 47.56 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3268/0.5271, allocations: 156.2 MB / 0.5196 GB, free: 66.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.5274, allocations: 105.6 kB / 0.5197 GB, free: 66.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.124/1.651, allocations: 384.8 MB / 0.8955 GB, free: 34.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.947e-06/1.651, allocations: 0 / 0.8955 GB, free: 34.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009933/1.652, allocations: 293.8 kB / 0.8958 GB, free: 34.92 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.03999/1.692, allocations: 11.7 MB / 0.9072 GB, free: 30.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/1.692, allocations: 10.25 kB / 0.9072 GB, free: 30.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03284/1.725, allocations: 6.374 MB / 0.9134 GB, free: 30.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0252/1.75, allocations: 9.488 MB / 0.9227 GB, free: 28.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001326/1.752, allocations: 0.9303 MB / 0.9236 GB, free: 28.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00526/1.757, allocations: 1.201 MB / 0.9248 GB, free: 28.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05613/1.813, allocations: 20.55 MB / 0.9449 GB, free: 19.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000818/1.814, allocations: 27.08 kB / 0.9449 GB, free: 19.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006481/1.82, allocations: 0.5168 MB / 0.9454 GB, free: 18.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001035/1.821, allocations: 0.8422 MB / 0.9462 GB, free: 18.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04207/1.864, allocations: 18.69 MB / 0.9645 GB, free: 1.949 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3766/2.24, allocations: 64.49 MB / 1.027 GB, free: 31.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03717/2.277, allocations: 45.86 MB / 1.072 GB, free: 28.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03825/2.316, allocations: 23.65 MB / 1.095 GB, free: 24.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.049e-05/2.316, allocations: 107.8 kB / 1.095 GB, free: 24.31 MB / 490.7 MB Notification: Performance of pre-optimization done (n=771): time 9.859e-06/2.316, allocations: 0 / 1.095 GB, free: 24.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=811): time 0.09266/2.409, allocations: 46.61 MB / 1.141 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/2.409, allocations: 127.4 kB / 1.141 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00498/2.414, allocations: 3.593 MB / 1.145 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008716/2.415, allocations: 135.7 kB / 1.145 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002046/2.417, allocations: 4.904 MB / 1.149 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002073/2.419, allocations: 2.692 MB / 1.152 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005002/2.419, allocations: 166.7 kB / 1.152 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004735/2.42, allocations: 0.6696 MB / 1.153 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00713/2.427, allocations: 5.128 MB / 1.158 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009941/2.437, allocations: 7.516 MB / 1.165 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/2.448, allocations: 6.451 MB / 1.172 GB, free: 200 kB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.674e-05/2.449, allocations: 27.95 kB / 1.172 GB, free: 172 kB / 0.4948 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.2854/2.734, allocations: 15.89 MB / 1.187 GB, free: 95.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.47e-05/2.734, allocations: 38.97 kB / 1.187 GB, free: 95.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/2.734, allocations: 73.34 kB / 1.187 GB, free: 95.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007889/2.742, allocations: 4.127 MB / 1.191 GB, free: 95.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007483/2.75, allocations: 1.644 MB / 1.193 GB, free: 95.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/2.762, allocations: 12.21 MB / 1.205 GB, free: 91.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006366/2.769, allocations: 446.9 kB / 1.205 GB, free: 91.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001631/2.77, allocations: 390.8 kB / 1.206 GB, free: 91.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (854): * Single equations (assignments): 798 * 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.01009/2.78, allocations: 4.393 MB / 1.21 GB, free: 91.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/2.782, allocations: 0.5852 MB / 1.21 GB, free: 91.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02541/2.808, allocations: 14.45 MB / 1.225 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001791/2.808, allocations: 194.9 kB / 1.225 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/2.808, allocations: 3.281 kB / 1.225 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.462e-05/2.808, allocations: 37.92 kB / 1.225 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04804/2.856, allocations: 28.81 MB / 1.253 GB, free: 80.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/2.856, allocations: 2.938 kB / 1.253 GB, free: 80.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005035/2.861, allocations: 1.062 MB / 1.254 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006864/2.868, allocations: 4.016 MB / 1.258 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001367/2.87, allocations: 167.5 kB / 1.258 GB, free: 79.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/2.881, allocations: 12.07 MB / 1.27 GB, free: 71.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/2.881, allocations: 4.781 kB / 1.27 GB, free: 71.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03403/2.915, allocations: 21.88 MB / 1.291 GB, free: 59.97 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006393/2.921, allocations: 1.744 MB / 1.293 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002297/2.924, allocations: 123.6 kB / 1.293 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004631/2.928, allocations: 330.5 kB / 1.293 GB, free: 58.05 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/2.93, allocations: 0.5688 MB / 1.294 GB, free: 57.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001009/2.931, allocations: 216.2 kB / 1.294 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005275/2.936, allocations: 2.688 MB / 1.297 GB, free: 55.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/2.936, allocations: 2.25 kB / 1.297 GB, free: 55.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009065/2.945, allocations: 2.16 MB / 1.299 GB, free: 53.12 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 491 * 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.001648/2.947, allocations: 0.6171 MB / 1.299 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02034/2.967, allocations: 13.08 MB / 1.312 GB, free: 41.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/2.967, allocations: 0.9062 kB / 1.312 GB, free: 41.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01104/2.978, allocations: 6.789 MB / 1.319 GB, free: 35.44 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007214/2.986, allocations: 1.175 MB / 1.32 GB, free: 34.54 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.325/3.311, allocations: 30.42 MB / 1.35 GB, free: 86.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0132/3.324, allocations: 7.983 MB / 1.357 GB, free: 85.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006934/3.331, allocations: 1.96 MB / 1.359 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/3.332, allocations: 438 kB / 1.36 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of SimCode: time 6.91e-07/3.332, allocations: 2.531 kB / 1.36 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of Templates: time 0.1835/3.516, allocations: 128.8 MB / 1.486 GB, free: 39.44 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