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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 114.9 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009903/0.0009904, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009637/0.0009638, allocations: 43.12 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09246, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1942/0.2868, allocations: 39.43 MB / 391 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02301/0.3098, allocations: 10.42 MB / 401.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009733/0.3196, allocations: 308.7 kB / 401.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01956/0.3393, allocations: 8.508 MB / 410.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.3531, allocations: 3.407 MB / 413.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007265/0.3603, allocations: 2.321 MB / 415.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01853/0.3789, allocations: 12.88 MB / 428.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03783/0.4168, allocations: 25.31 MB / 454.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01181/0.4286, allocations: 6.791 MB / 460.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01286/0.4415, allocations: 7.728 MB / 468.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005966/0.4475, allocations: 1.953 MB / 470.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009106/0.4567, allocations: 2.347 MB / 472.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006997/0.4637, allocations: 3.951 MB / 476.9 MB, free: 7.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01502/0.4788, allocations: 7.556 MB / 484.4 MB, free: 144 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03102/0.5098, allocations: 25.86 MB / 0.4983 GB, free: 6.203 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.5099, allocations: 0 / 0.4983 GB, free: 6.203 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5099, allocations: 0 / 0.4983 GB, free: 6.203 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000756/0.5106, allocations: 0 / 0.4983 GB, free: 6.203 MB / 414.1 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.04666/0.5573, allocations: 14.99 MB / 0.513 GB, free: 7.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.5574, allocations: 12.03 kB / 0.513 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03431/0.5917, allocations: 6.147 MB / 0.519 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3402/0.9319, allocations: 8.041 MB / 0.5269 GB, free: 115.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008302/0.9327, allocations: 0.9102 MB / 0.5277 GB, free: 115.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00399/0.9367, allocations: 1.192 MB / 0.5289 GB, free: 114.9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04274/0.9795, allocations: 18.65 MB / 0.5471 GB, free: 107.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003745/0.9799, allocations: 27.62 kB / 0.5472 GB, free: 107.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003334/0.9832, allocations: 0.4906 MB / 0.5476 GB, free: 107.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009027/0.9842, allocations: 0.6433 MB / 0.5483 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03212/1.016, allocations: 16.77 MB / 0.5646 GB, free: 93.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08468/1.101, allocations: 58.12 MB / 0.6214 GB, free: 34.37 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/1.119, allocations: 32.87 MB / 0.6535 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005726/1.125, allocations: 3.734 MB / 0.6571 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01396/1.139, allocations: 8.627 MB / 0.6656 GB, free: 1.246 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/1.139, allocations: 73.25 kB / 0.6656 GB, free: 1.164 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.741e-06/1.139, allocations: 0 / 0.6656 GB, free: 1.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03633/1.176, allocations: 17.56 MB / 0.6828 GB, free: 15.46 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/1.176, allocations: 90.47 kB / 0.6829 GB, free: 15.36 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007558/1.183, allocations: 5.012 MB / 0.6878 GB, free: 10.35 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005702/1.184, allocations: 89.7 kB / 0.6878 GB, free: 10.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003646/1.188, allocations: 5.44 MB / 0.6932 GB, free: 4.781 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/1.189, allocations: 1.358 MB / 0.6945 GB, free: 3.434 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001821/1.191, allocations: 1.314 MB / 0.6958 GB, free: 2.109 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/1.191, allocations: 301.1 kB / 0.6961 GB, free: 1.812 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2088/1.4, allocations: 2.906 MB / 0.6989 GB, free: 148.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008339/1.408, allocations: 5.873 MB / 0.7046 GB, free: 145.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/1.419, allocations: 9.443 MB / 0.7139 GB, free: 138.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002112/1.42, allocations: 32.25 kB / 0.7139 GB, free: 138.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0187/1.438, allocations: 9.844 MB / 0.7235 GB, free: 134.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.733e-05/1.438, allocations: 47.91 kB / 0.7235 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/1.439, allocations: 106.8 kB / 0.7236 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/1.441, allocations: 0.9288 MB / 0.7246 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005213/1.446, allocations: 1.587 MB / 0.7261 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009993/1.456, allocations: 10.18 MB / 0.736 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005206/1.461, allocations: 409.8 kB / 0.7364 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007408/1.462, allocations: 361.6 kB / 0.7368 GB, free: 127 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005808/1.468, allocations: 4.239 MB / 0.7409 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/1.469, allocations: 0.5146 MB / 0.7414 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00923/1.478, allocations: 6.478 MB / 0.7477 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/1.478, allocations: 42.31 kB / 0.7478 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/1.478, allocations: 13.62 kB / 0.7478 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.332e-05/1.478, allocations: 23.78 kB / 0.7478 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02234/1.501, allocations: 15.69 MB / 0.7631 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/1.501, allocations: 4.812 kB / 0.7631 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/1.504, allocations: 0.7497 MB / 0.7639 GB, free: 111.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/1.506, allocations: 0.7833 MB / 0.7646 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/1.506, allocations: 91.16 kB / 0.7647 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/1.514, allocations: 9.348 MB / 0.7739 GB, free: 101.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.514, allocations: 8.094 kB / 0.7739 GB, free: 101.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/1.525, allocations: 9.496 MB / 0.7831 GB, free: 92.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/1.528, allocations: 1.056 MB / 0.7842 GB, free: 91.06 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001044/1.529, allocations: 75.94 kB / 0.7842 GB, free: 90.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002583/1.532, allocations: 227.7 kB / 0.7845 GB, free: 90.76 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005507/1.532, allocations: 262.7 kB / 0.7847 GB, free: 90.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/1.532, allocations: 108 kB / 0.7848 GB, free: 90.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004887/1.537, allocations: 3.354 MB / 0.7881 GB, free: 87.06 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.537, allocations: 3.828 kB / 0.7881 GB, free: 87.06 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007378/1.545, allocations: 1.878 MB / 0.7899 GB, free: 85.18 MB / 478.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007849/1.545, allocations: 257.1 kB / 0.7902 GB, free: 84.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01008/1.556, allocations: 7.675 MB / 0.7977 GB, free: 77.18 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.556, allocations: 4 kB / 0.7977 GB, free: 77.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004323/1.56, allocations: 3.551 MB / 0.8011 GB, free: 73.55 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004985/1.565, allocations: 1.282 MB / 0.8024 GB, free: 72.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02735/1.592, allocations: 19.66 MB / 0.8216 GB, free: 52.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005917/1.598, allocations: 7.32 MB / 0.8287 GB, free: 45.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00498/1.603, allocations: 2.141 MB / 0.8308 GB, free: 43.09 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/1.604, allocations: 411.3 kB / 0.8312 GB, free: 42.68 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/1.604, allocations: 4 kB / 0.8312 GB, free: 42.68 MB / 478.1 MB Notification: Performance of Templates: time 0.2676/1.872, allocations: 69.27 MB / 0.8989 GB, free: 131 MB / 478.1 MB 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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