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.002187/0.002193, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001076/0.001076, allocations: 88.44 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004013/0.0004015, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3441, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.548, allocations: 115.8 MB / 490.3 MB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/0.5484, allocations: 95.95 kB / 490.4 MB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5424/1.091, allocations: 74.99 MB / 0.5522 GB, free: 64.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.091, allocations: 0 / 0.5522 GB, free: 64.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003626/1.091, allocations: 87.86 kB / 0.5522 GB, free: 64.18 MB / 378.7 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.01543/1.107, allocations: 3.485 MB / 0.5557 GB, free: 60.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/1.107, allocations: 11.98 kB / 0.5557 GB, free: 60.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004847/1.112, allocations: 0.5898 MB / 0.5562 GB, free: 60.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01289/1.125, allocations: 3.134 MB / 0.5593 GB, free: 56.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/1.125, allocations: 242.3 kB / 0.5595 GB, free: 56.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/1.126, allocations: 307.9 kB / 0.5598 GB, free: 56.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01398/1.14, allocations: 3.987 MB / 0.5637 GB, free: 52.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/1.141, allocations: 4 kB / 0.5637 GB, free: 52.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001078/1.142, allocations: 136 kB / 0.5639 GB, free: 52.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/1.142, allocations: 146.2 kB / 0.564 GB, free: 51.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/1.153, allocations: 3.175 MB / 0.5671 GB, free: 48.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0324/1.185, allocations: 13.43 MB / 0.5802 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00593/1.191, allocations: 3.993 MB / 0.5841 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006815/1.198, allocations: 2.724 MB / 0.5868 GB, free: 27.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/1.198, allocations: 47.56 kB / 0.5868 GB, free: 27.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 4.619e-06/1.198, allocations: 0 / 0.5868 GB, free: 27.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02201/1.22, allocations: 6.494 MB / 0.5932 GB, free: 20.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/1.22, allocations: 64.72 kB / 0.5932 GB, free: 20.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/1.224, allocations: 1.653 MB / 0.5948 GB, free: 19.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003219/1.224, allocations: 45.7 kB / 0.5949 GB, free: 19.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009407/1.225, allocations: 1.434 MB / 0.5963 GB, free: 17.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005922/1.226, allocations: 0.5045 MB / 0.5968 GB, free: 17.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/1.226, allocations: 36 kB / 0.5968 GB, free: 17.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/1.226, allocations: 378.8 kB / 0.5972 GB, free: 16.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/1.228, allocations: 0.7848 MB / 0.5979 GB, free: 15.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/1.23, allocations: 1.36 MB / 0.5993 GB, free: 14.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/1.233, allocations: 1.018 MB / 0.6003 GB, free: 13.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-05/1.233, allocations: 7.938 kB / 0.6003 GB, free: 13.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00553/1.238, allocations: 2.354 MB / 0.6026 GB, free: 10.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/1.239, allocations: 16.94 kB / 0.6026 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.49e-05/1.239, allocations: 16 kB / 0.6026 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005161/1.239, allocations: 118.5 kB / 0.6027 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003553/1.243, allocations: 499.3 kB / 0.6032 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/1.244, allocations: 1.315 MB / 0.6045 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/1.247, allocations: 119.8 kB / 0.6046 GB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/1.247, allocations: 76 kB / 0.6046 GB, free: 8.574 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (233): * Single equations (assignments): 230 * 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.002424/1.249, allocations: 0.9892 MB / 0.6056 GB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006064/1.25, allocations: 201.5 kB / 0.6058 GB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005014/1.255, allocations: 2.016 MB / 0.6078 GB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/1.255, allocations: 15.94 kB / 0.6078 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.255, allocations: 8 kB / 0.6078 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/1.255, allocations: 7.969 kB / 0.6078 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.267, allocations: 5.098 MB / 0.6128 GB, free: 104 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.267, allocations: 0 / 0.6128 GB, free: 104 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002905/1.27, allocations: 327.8 kB / 0.6131 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004985/1.27, allocations: 102.5 kB / 0.6132 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/1.271, allocations: 32 kB / 0.6132 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/1.272, allocations: 1.284 MB / 0.6145 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.272, allocations: 0 / 0.6145 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008279/1.28, allocations: 3.286 MB / 0.6177 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/1.282, allocations: 474.3 kB / 0.6181 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007121/1.283, allocations: 31.94 kB / 0.6182 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/1.285, allocations: 83.91 kB / 0.6183 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/1.285, allocations: 97.16 kB / 0.6183 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/1.285, allocations: 44 kB / 0.6184 GB, free: 10.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003442/1.289, allocations: 1.262 MB / 0.6196 GB, free: 8.789 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.289, allocations: 0 / 0.6196 GB, free: 8.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003131/1.292, allocations: 0.5859 MB / 0.6202 GB, free: 8.203 MB / 394.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * 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.0009582/1.293, allocations: 473.3 kB / 0.6206 GB, free: 7.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005495/1.299, allocations: 2.235 MB / 0.6228 GB, free: 5.453 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.299, allocations: 0 / 0.6228 GB, free: 5.453 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/1.301, allocations: 1.206 MB / 0.624 GB, free: 4.191 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003705/1.305, allocations: 478.7 kB / 0.6245 GB, free: 3.723 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.32, allocations: 6.783 MB / 0.6311 GB, free: 12.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002944/1.323, allocations: 2.275 MB / 0.6333 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.325, allocations: 175.4 kB / 0.6335 GB, free: 10.39 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/1.325, allocations: 0 / 0.6335 GB, free: 10.39 MB / 410.7 MB Notification: Performance of Templates: time 0.4171/1.742, allocations: 82.65 MB / 0.7142 GB, free: 59.16 MB / 410.7 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