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.001051/0.001051, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.00108/0.001081, allocations: 192 kB / 18.63 MB, free: 4.508 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.331/1.331, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009657/0.0009658, allocations: 43.86 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.09032, allocations: 49.44 MB / 351.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1808/0.2712, allocations: 39.42 MB / 391 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.2924, allocations: 10.42 MB / 401.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007714/0.3001, allocations: 304.1 kB / 401.7 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01982/0.32, allocations: 8.514 MB / 410.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01212/0.3322, allocations: 3.407 MB / 413.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006656/0.3388, allocations: 2.323 MB / 415.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01499/0.3538, allocations: 12.87 MB / 428.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03321/0.3871, allocations: 25.34 MB / 454.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0107/0.3978, allocations: 6.787 MB / 460.9 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01216/0.41, allocations: 7.728 MB / 468.6 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005126/0.4152, allocations: 1.953 MB / 470.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007534/0.4227, allocations: 2.339 MB / 472.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005053/0.4278, allocations: 3.955 MB / 476.9 MB, free: 7.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01198/0.4398, allocations: 7.56 MB / 484.4 MB, free: 96 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02762/0.4675, allocations: 25.86 MB / 0.4984 GB, free: 6.156 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4675, allocations: 0 / 0.4984 GB, free: 6.156 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4675, allocations: 0 / 0.4984 GB, free: 6.156 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005516/0.4681, allocations: 4 kB / 0.4984 GB, free: 6.152 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.04253/0.5106, allocations: 14.99 MB / 0.513 GB, free: 7.039 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.5107, allocations: 8.031 kB / 0.513 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03472/0.5454, allocations: 6.147 MB / 0.519 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3076/0.8531, allocations: 8.045 MB / 0.5269 GB, free: 115.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006732/0.8538, allocations: 0.9013 MB / 0.5277 GB, free: 115.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003476/0.8573, allocations: 1.195 MB / 0.5289 GB, free: 115 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03807/0.8953, allocations: 18.66 MB / 0.5471 GB, free: 107.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004773/0.8959, allocations: 15.75 kB / 0.5471 GB, free: 107.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002894/0.8988, allocations: 0.4974 MB / 0.5476 GB, free: 107.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007378/0.8995, allocations: 0.64 MB / 0.5483 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02869/0.9282, allocations: 16.77 MB / 0.5646 GB, free: 93.45 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07873/1.007, allocations: 58.11 MB / 0.6214 GB, free: 34.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01807/1.025, allocations: 32.88 MB / 0.6535 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005769/1.031, allocations: 3.726 MB / 0.6571 GB, free: 9.852 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01622/1.047, allocations: 8.625 MB / 0.6656 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/1.047, allocations: 73.25 kB / 0.6656 GB, free: 1.145 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.558e-06/1.047, allocations: 0 / 0.6656 GB, free: 1.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03787/1.085, allocations: 17.56 MB / 0.6828 GB, free: 15.44 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/1.085, allocations: 90.47 kB / 0.6829 GB, free: 15.34 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008647/1.094, allocations: 5.016 MB / 0.6878 GB, free: 10.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007665/1.095, allocations: 89.7 kB / 0.6878 GB, free: 10.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003566/1.098, allocations: 5.44 MB / 0.6932 GB, free: 4.758 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001466/1.1, allocations: 1.361 MB / 0.6945 GB, free: 3.406 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002354/1.102, allocations: 1.31 MB / 0.6958 GB, free: 2.086 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.548e-05/1.102, allocations: 301.1 kB / 0.6961 GB, free: 1.789 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1801/1.282, allocations: 2.905 MB / 0.6989 GB, free: 148.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005888/1.288, allocations: 5.874 MB / 0.7046 GB, free: 145.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009409/1.298, allocations: 9.44 MB / 0.7138 GB, free: 138.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.298, allocations: 32.56 kB / 0.7139 GB, free: 138.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01611/1.314, allocations: 9.851 MB / 0.7235 GB, free: 134.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.329e-05/1.314, allocations: 47.31 kB / 0.7235 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.314, allocations: 101.3 kB / 0.7236 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/1.316, allocations: 0.9434 MB / 0.7246 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005309/1.322, allocations: 1.583 MB / 0.7261 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009642/1.331, allocations: 10.17 MB / 0.736 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004989/1.336, allocations: 415.5 kB / 0.7364 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008053/1.337, allocations: 353.2 kB / 0.7368 GB, free: 127.1 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.006458/1.344, allocations: 4.244 MB / 0.7409 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/1.345, allocations: 0.5072 MB / 0.7414 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.355, allocations: 6.479 MB / 0.7477 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/1.355, allocations: 43.09 kB / 0.7478 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-05/1.355, allocations: 12.62 kB / 0.7478 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/1.355, allocations: 21.23 kB / 0.7478 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02714/1.382, allocations: 15.69 MB / 0.7631 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/1.382, allocations: 4.75 kB / 0.7631 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/1.385, allocations: 0.7451 MB / 0.7639 GB, free: 111.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/1.387, allocations: 0.7888 MB / 0.7646 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003807/1.388, allocations: 87.44 kB / 0.7647 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008467/1.396, allocations: 9.351 MB / 0.7739 GB, free: 101.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.396, allocations: 7.938 kB / 0.7739 GB, free: 101.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.409, allocations: 9.493 MB / 0.7831 GB, free: 92.04 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003923/1.413, allocations: 1.048 MB / 0.7842 GB, free: 91.06 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00169/1.415, allocations: 81.98 kB / 0.7842 GB, free: 90.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00314/1.418, allocations: 223.8 kB / 0.7845 GB, free: 90.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000702/1.419, allocations: 270.7 kB / 0.7847 GB, free: 90.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003335/1.419, allocations: 108 kB / 0.7848 GB, free: 90.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005281/1.424, allocations: 3.346 MB / 0.7881 GB, free: 87.06 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.424, allocations: 4 kB / 0.7881 GB, free: 87.06 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006362/1.431, 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.0006028/1.431, allocations: 254.1 kB / 0.7902 GB, free: 84.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009822/1.441, allocations: 7.671 MB / 0.7977 GB, free: 77.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/1.441, allocations: 5 kB / 0.7977 GB, free: 77.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004646/1.446, allocations: 3.556 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.005061/1.451, allocations: 1.286 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.03037/1.481, allocations: 19.67 MB / 0.8216 GB, free: 52.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008155/1.489, allocations: 7.32 MB / 0.8287 GB, free: 45.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005666/1.495, allocations: 2.152 MB / 0.8308 GB, free: 43.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/1.497, allocations: 403.4 kB / 0.8312 GB, free: 42.68 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/1.497, allocations: 0 / 0.8312 GB, free: 42.68 MB / 478.1 MB Notification: Performance of Templates: time 0.2867/1.783, 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 gbode -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