Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 176.5 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.5 MB / 230.3 MB, free: 7.496 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008974/0.0008974, allocations: 90.11 kB / 281.2 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.435e-05, allocations: 3.984 kB / 337.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.0947, allocations: 50.42 MB / 387.5 MB, free: 7.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3924/0.4872, allocations: 156.4 MB / 0.5312 GB, free: 2.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.4875, allocations: 103.9 kB / 0.5313 GB, free: 2.129 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.569/2.057, allocations: 370.9 MB / 0.8935 GB, free: 40.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/2.057, allocations: 1.219 kB / 0.8935 GB, free: 40.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.002052/2.059, allocations: 286.8 kB / 0.8938 GB, free: 40.02 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04758/2.107, allocations: 10.73 MB / 0.9042 GB, free: 36.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.224e-05/2.107, allocations: 10.41 kB / 0.9043 GB, free: 36.62 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04039/2.147, allocations: 4.392 MB / 0.9085 GB, free: 35.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03296/2.18, allocations: 9.321 MB / 0.9176 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009521/2.181, allocations: 388.7 kB / 0.918 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005941/2.187, allocations: 0.6851 MB / 0.9187 GB, free: 34.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03643/2.223, allocations: 13.91 MB / 0.9323 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05512/2.279, allocations: 16.37 MB / 0.9483 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007758/2.279, allocations: 22.83 kB / 0.9483 GB, free: 33.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005249/2.285, allocations: 10.41 kB / 0.9483 GB, free: 33.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001235/2.286, allocations: 0.8119 MB / 0.9491 GB, free: 33.28 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1189/2.405, allocations: 57.89 MB / 1.006 GB, free: 9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03171/2.437, allocations: 32.48 MB / 1.037 GB, free: 7.898 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009054/2.446, allocations: 3.844 MB / 1.041 GB, free: 4.453 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3601/2.806, allocations: 8.813 MB / 1.05 GB, free: 70.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/2.806, allocations: 69.81 kB / 1.05 GB, free: 70.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=352): time 5.51e-06/2.806, allocations: 0.5312 kB / 1.05 GB, free: 70.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=394): time 0.04/2.846, allocations: 15.56 MB / 1.065 GB, free: 68.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/2.846, allocations: 94.47 kB / 1.065 GB, free: 68.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0082/2.854, allocations: 3.778 MB / 1.069 GB, free: 68.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008833/2.855, allocations: 25.7 kB / 1.069 GB, free: 68.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004022/2.859, allocations: 5.459 MB / 1.074 GB, free: 65.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002107/2.862, allocations: 1.323 MB / 1.075 GB, free: 64.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000539/2.862, allocations: 0 / 1.075 GB, free: 64.34 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004136/2.863, allocations: 0.5724 MB / 1.076 GB, free: 64.03 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004145/2.867, allocations: 2.805 MB / 1.079 GB, free: 64.01 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006058/2.873, allocations: 5.789 MB / 1.084 GB, free: 60.26 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009269/2.882, allocations: 4.792 MB / 1.089 GB, free: 60.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000168/2.882, allocations: 29.59 kB / 1.089 GB, free: 60.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.02322/2.906, allocations: 9.823 MB / 1.099 GB, free: 59.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/2.906, allocations: 53.47 kB / 1.099 GB, free: 59.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002658/2.906, allocations: 105 kB / 1.099 GB, free: 59.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00311/2.909, allocations: 1.024 MB / 1.1 GB, free: 59.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007568/2.917, allocations: 1.615 MB / 1.101 GB, free: 59.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/2.929, allocations: 9.915 MB / 1.111 GB, free: 55.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007561/2.936, allocations: 307.9 kB / 1.111 GB, free: 55.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/2.938, allocations: 360.7 kB / 1.112 GB, free: 55.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (818): * Single equations (assignments): 812 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,(8,62.5%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00207/2.94, allocations: 374 kB / 1.112 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001847/2.942, allocations: 492.6 kB / 1.113 GB, free: 55.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/2.956, allocations: 6.955 MB / 1.119 GB, free: 55.11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.744e-05/2.956, allocations: 39.09 kB / 1.119 GB, free: 55.11 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.901e-05/2.956, allocations: 10.25 kB / 1.119 GB, free: 55.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.259e-05/2.956, allocations: 19.31 kB / 1.119 GB, free: 55.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03534/2.992, allocations: 14.69 MB / 1.134 GB, free: 54.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/2.992, allocations: 3.969 kB / 1.134 GB, free: 54.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00366/2.995, allocations: 0.7551 MB / 1.134 GB, free: 54.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/2.998, allocations: 0.8488 MB / 1.135 GB, free: 54.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006346/2.998, allocations: 31.81 kB / 1.135 GB, free: 54.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009439/3.008, allocations: 9.071 MB / 1.144 GB, free: 49.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/3.008, allocations: 6.188 kB / 1.144 GB, free: 49.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/3.024, allocations: 10.44 MB / 1.154 GB, free: 44.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/3.028, allocations: 1.048 MB / 1.155 GB, free: 44.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001633/3.03, allocations: 10.52 kB / 1.155 GB, free: 44.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003697/3.033, allocations: 202 kB / 1.156 GB, free: 44.24 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005687/3.034, allocations: 262.3 kB / 1.156 GB, free: 44.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002918/3.034, allocations: 112.9 kB / 1.156 GB, free: 44.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005138/3.039, allocations: 2.728 MB / 1.159 GB, free: 43.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.5e-07/3.039, allocations: 0 / 1.159 GB, free: 43.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01104/3.05, allocations: 1.711 MB / 1.16 GB, free: 43.06 MB / 490.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 356 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001748/3.052, allocations: 0.5007 MB / 1.161 GB, free: 42.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01227/3.064, allocations: 7.463 MB / 1.168 GB, free: 39.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/3.065, allocations: 0 / 1.168 GB, free: 39.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005688/3.07, allocations: 3.569 MB / 1.172 GB, free: 35.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006616/3.077, allocations: 0.9733 MB / 1.173 GB, free: 35.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04323/3.12, allocations: 16.71 MB / 1.189 GB, free: 20.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/3.131, allocations: 7.521 MB / 1.196 GB, free: 14.57 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008044/3.139, allocations: 2.132 MB / 1.198 GB, free: 13.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/3.141, allocations: 385.9 kB / 1.199 GB, free: 12.83 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/3.141, allocations: 8 kB / 1.199 GB, free: 12.82 MB / 490.7 MB Notification: Performance of Templates: time 0.4807/3.622, allocations: 65.93 MB / 1.263 GB, free: 69.75 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches