Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00205/0.00205, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 89.33 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.104e-05, allocations: 8 kB / 314.8 MB, free: 9.133 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3381, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.5742, allocations: 115 MB / 477.4 MB, free: 3.176 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004814/0.5747, allocations: 87.94 kB / 477.5 MB, free: 3.09 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6686/1.243, allocations: 74 MB / 0.5386 GB, free: 94.96 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.335e-06/1.243, allocations: 0 / 0.5386 GB, free: 94.96 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003222/1.244, allocations: 83 kB / 0.5386 GB, free: 94.95 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01254/1.256, allocations: 3.129 MB / 0.5417 GB, free: 93.36 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/1.256, allocations: 14.97 kB / 0.5417 GB, free: 93.36 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004431/1.261, allocations: 0.5909 MB / 0.5423 GB, free: 93.13 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/1.272, allocations: 3.09 MB / 0.5453 GB, free: 91.63 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/1.272, allocations: 106 kB / 0.5454 GB, free: 91.63 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000751/1.273, allocations: 188 kB / 0.5456 GB, free: 91.62 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007764/1.28, allocations: 2.881 MB / 0.5484 GB, free: 90.33 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008794/1.289, allocations: 3.468 MB / 0.5518 GB, free: 88.27 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/1.289, allocations: 11.84 kB / 0.5518 GB, free: 88.26 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/1.29, allocations: 2.688 kB / 0.5518 GB, free: 88.26 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001796/1.29, allocations: 142.4 kB / 0.5519 GB, free: 88.24 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02665/1.317, allocations: 12.82 MB / 0.5644 GB, free: 76.41 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005079/1.322, allocations: 3.894 MB / 0.5683 GB, free: 72.01 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002152/1.324, allocations: 0.9433 MB / 0.5692 GB, free: 71.07 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006015/1.33, allocations: 2.612 MB / 0.5717 GB, free: 68.39 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/1.33, allocations: 47.81 kB / 0.5718 GB, free: 68.34 MB / 395.1 MB Notification: Performance of pre-optimization done (n=111): time 4.108e-06/1.33, allocations: 0 / 0.5718 GB, free: 68.34 MB / 395.1 MB Notification: Performance of matching and sorting (n=147): time 0.01609/1.346, allocations: 5.325 MB / 0.577 GB, free: 62.97 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/1.346, allocations: 68.72 kB / 0.577 GB, free: 62.89 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002648/1.349, allocations: 1.364 MB / 0.5784 GB, free: 61.53 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001765/1.349, allocations: 29.7 kB / 0.5784 GB, free: 61.49 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008687/1.35, allocations: 1.453 MB / 0.5798 GB, free: 60.02 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/1.351, allocations: 496.6 kB / 0.5803 GB, free: 59.53 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/1.351, allocations: 0 / 0.5803 GB, free: 59.53 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/1.351, allocations: 378.8 kB / 0.5806 GB, free: 59.15 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/1.352, allocations: 0.7186 MB / 0.5813 GB, free: 58.43 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/1.354, allocations: 1.291 MB / 0.5826 GB, free: 56.88 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/1.357, allocations: 1.048 MB / 0.5836 GB, free: 55.83 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.301e-05/1.357, allocations: 11.94 kB / 0.5836 GB, free: 55.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005047/1.362, allocations: 2.198 MB / 0.5858 GB, free: 53.61 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/1.362, allocations: 16 kB / 0.5858 GB, free: 53.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/1.362, allocations: 16 kB / 0.5858 GB, free: 53.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004879/1.362, allocations: 127.1 kB / 0.5859 GB, free: 53.44 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00336/1.366, allocations: 491.2 kB / 0.5864 GB, free: 52.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009227/1.367, allocations: 1.264 MB / 0.5876 GB, free: 51.58 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00232/1.369, allocations: 79.95 kB / 0.5877 GB, free: 51.5 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/1.369, allocations: 91.97 kB / 0.5878 GB, free: 51.41 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003713/1.37, allocations: 160.3 kB / 0.588 GB, free: 51.25 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/1.37, allocations: 189.7 kB / 0.5881 GB, free: 51.06 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004715/1.375, allocations: 1.913 MB / 0.59 GB, free: 49.13 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/1.375, allocations: 12 kB / 0.59 GB, free: 49.12 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/1.375, allocations: 4 kB / 0.59 GB, free: 49.11 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/1.375, allocations: 11.97 kB / 0.59 GB, free: 49.1 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/1.385, allocations: 4.574 MB / 0.5945 GB, free: 44.48 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.385, allocations: 4 kB / 0.5945 GB, free: 44.47 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/1.388, allocations: 331.8 kB / 0.5948 GB, free: 44.15 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004268/1.388, allocations: 94.52 kB / 0.5949 GB, free: 44.05 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/1.388, allocations: 8 kB / 0.5949 GB, free: 44.04 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000819/1.389, allocations: 1.229 MB / 0.5961 GB, free: 42.7 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.389, allocations: 4 kB / 0.5961 GB, free: 42.69 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006307/1.396, allocations: 3.199 MB / 0.5993 GB, free: 39.39 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/1.397, allocations: 446.6 kB / 0.5997 GB, free: 38.94 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003544/1.397, allocations: 7.938 kB / 0.5997 GB, free: 38.93 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/1.399, allocations: 67.89 kB / 0.5997 GB, free: 38.86 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/1.399, allocations: 89.14 kB / 0.5998 GB, free: 38.77 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/1.399, allocations: 43.98 kB / 0.5999 GB, free: 38.73 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001982/1.401, allocations: 1.019 MB / 0.6009 GB, free: 37.72 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.401, allocations: 0 / 0.6009 GB, free: 37.72 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002568/1.404, allocations: 0.4961 MB / 0.6014 GB, free: 37.22 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007891/1.405, allocations: 430.7 kB / 0.6018 GB, free: 36.83 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004154/1.409, allocations: 2.084 MB / 0.6038 GB, free: 34.7 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.409, allocations: 4 kB / 0.6038 GB, free: 34.7 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002996/1.412, allocations: 1.145 MB / 0.6049 GB, free: 33.5 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004579/1.417, allocations: 399.6 kB / 0.6053 GB, free: 33.11 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/1.433, allocations: 4.401 MB / 0.6096 GB, free: 28.64 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003676/1.437, allocations: 2.275 MB / 0.6118 GB, free: 26.33 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001555/1.439, allocations: 163.4 kB / 0.612 GB, free: 26.17 MB / 395.1 MB Notification: Performance of SimCode: time 1.883e-06/1.439, allocations: 0 / 0.612 GB, free: 26.17 MB / 395.1 MB Notification: Performance of Templates: time 0.4538/1.892, allocations: 80.92 MB / 0.691 GB, free: 93.83 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches