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.000895/0.0008949, allocations: 181.2 kB / 17.41 MB, free: 4.41 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.292/1.292, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0007795/0.0007794, allocations: 90.34 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003143, allocations: 8 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2041, allocations: 47.57 MB / 375.8 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.5184, allocations: 156.9 MB / 0.5201 GB, free: 99.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.5188, allocations: 105.1 kB / 0.5202 GB, free: 99.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.05/1.569, allocations: 382.6 MB / 0.8939 GB, free: 38.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.569, allocations: 0 / 0.8939 GB, free: 38.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001014/1.57, allocations: 291.6 kB / 0.8942 GB, free: 38.4 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.03966/1.61, allocations: 11.57 MB / 0.9055 GB, free: 34.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.61, allocations: 10.78 kB / 0.9055 GB, free: 34.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03243/1.642, allocations: 6.37 MB / 0.9117 GB, free: 33.76 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02242/1.665, allocations: 8.863 MB / 0.9204 GB, free: 32.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001413/1.666, allocations: 0.9192 MB / 0.9213 GB, free: 32.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005739/1.672, allocations: 1.205 MB / 0.9225 GB, free: 31.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05118/1.723, allocations: 20.66 MB / 0.9426 GB, free: 18.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006344/1.724, allocations: 27.59 kB / 0.9427 GB, free: 18.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004126/1.728, allocations: 0.5102 MB / 0.9432 GB, free: 18.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008162/1.729, allocations: 0.8383 MB / 0.944 GB, free: 17.65 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04072/1.77, allocations: 18.68 MB / 0.9622 GB, free: 1.473 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3753/2.145, allocations: 64.52 MB / 1.025 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03645/2.182, allocations: 45.86 MB / 1.07 GB, free: 32.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0129/2.195, allocations: 7.812 MB / 1.078 GB, free: 32.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04429/2.239, allocations: 23.55 MB / 1.101 GB, free: 23.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.092e-05/2.239, allocations: 102.8 kB / 1.101 GB, free: 23.58 MB / 490.7 MB Notification: Performance of pre-optimization done (n=761): time 9.999e-06/2.239, allocations: 0 / 1.101 GB, free: 23.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=801): time 0.09727/2.336, allocations: 41.89 MB / 1.142 GB, free: 7.875 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/2.336, allocations: 119.8 kB / 1.142 GB, free: 7.805 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006488/2.343, allocations: 4.07 MB / 1.146 GB, free: 6.281 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001342/2.344, allocations: 139.9 kB / 1.146 GB, free: 6.164 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003096/2.347, allocations: 4.921 MB / 1.151 GB, free: 2.469 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003486/2.351, allocations: 2.665 MB / 1.153 GB, free: 408 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008574/2.352, allocations: 160.6 kB / 1.153 GB, free: 280 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007021/2.352, allocations: 0.6687 MB / 1.154 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008665/2.361, allocations: 5.099 MB / 1.159 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01132/2.372, allocations: 7.527 MB / 1.166 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2652/2.638, allocations: 14.53 MB / 1.181 GB, free: 97.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.179e-05/2.638, allocations: 20.53 kB / 1.181 GB, free: 97.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.027/2.665, allocations: 15.64 MB / 1.196 GB, free: 97.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.667e-05/2.665, allocations: 44.3 kB / 1.196 GB, free: 97.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/2.665, allocations: 70.75 kB / 1.196 GB, free: 97.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007473/2.673, allocations: 4.12 MB / 1.2 GB, free: 97.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006926/2.68, allocations: 1.628 MB / 1.202 GB, free: 97.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/2.692, allocations: 12.23 MB / 1.214 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00653/2.698, allocations: 447.3 kB / 1.214 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002179/2.701, allocations: 391.4 kB / 1.214 GB, free: 92.62 MB / 0.4948 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.01004/2.711, allocations: 4.401 MB / 1.219 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/2.712, allocations: 0.5757 MB / 1.219 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02727/2.74, allocations: 14.34 MB / 1.233 GB, free: 91.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001982/2.74, allocations: 193.9 kB / 1.233 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/2.74, allocations: 5.594 kB / 1.233 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001407/2.74, allocations: 35.02 kB / 1.233 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05069/2.791, allocations: 28.66 MB / 1.261 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.082e-05/2.791, allocations: 7 kB / 1.261 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004589/2.795, allocations: 1.031 MB / 1.262 GB, free: 79.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006849/2.802, allocations: 4.016 MB / 1.266 GB, free: 78.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001232/2.804, allocations: 169.5 kB / 1.267 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/2.814, allocations: 12.04 MB / 1.278 GB, free: 70.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/2.814, allocations: 5.031 kB / 1.278 GB, free: 70.31 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0343/2.848, allocations: 21.37 MB / 1.299 GB, free: 55.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004817/2.853, allocations: 1.746 MB / 1.301 GB, free: 54.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002345/2.855, allocations: 116 kB / 1.301 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004681/2.86, allocations: 329.5 kB / 1.301 GB, free: 53.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0019/2.862, allocations: 0.5619 MB / 1.302 GB, free: 53.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001284/2.863, allocations: 220 kB / 1.302 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00568/2.869, allocations: 2.697 MB / 1.305 GB, free: 51.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2e-07/2.869, allocations: 3.062 kB / 1.305 GB, free: 51.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01004/2.879, allocations: 2.151 MB / 1.307 GB, free: 48.97 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 (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.001981/2.881, allocations: 0.6092 MB / 1.307 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02215/2.903, allocations: 13.02 MB / 1.32 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/2.903, allocations: 0 / 1.32 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01312/2.916, allocations: 6.742 MB / 1.327 GB, free: 31.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01371/2.93, allocations: 1.257 MB / 1.328 GB, free: 30.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3026/3.233, allocations: 29.17 MB / 1.356 GB, free: 88.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01545/3.248, allocations: 7.545 MB / 1.364 GB, free: 87.84 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002458/3.251, allocations: 495.5 kB / 1.364 GB, free: 87.84 MB / 0.4948 GB Notification: Performance of SimCode: time 1.022e-06/3.251, allocations: 0 / 1.364 GB, free: 87.84 MB / 0.4948 GB Notification: Performance of Templates: time 1.728/4.979, allocations: 0.7535 GB / 2.118 GB, free: 102.5 MB / 0.5105 GB 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/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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches