Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009509/0.0009509, allocations: 202.7 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.5 MB / 245.4 MB, free: 8.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000749/0.000749, allocations: 96.88 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002491, allocations: 4 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2206, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3309/0.5516, allocations: 117.9 MB / 0.5143 GB, free: 98.47 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.5518, allocations: 102.7 kB / 0.5144 GB, free: 98.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.169/0.7208, allocations: 77.76 MB / 0.5903 GB, free: 21.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.7209, allocations: 0 / 0.5903 GB, free: 21.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003404/0.7212, allocations: 87.81 kB / 0.5904 GB, free: 21.07 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.01061/0.7319, allocations: 3.497 MB / 0.5938 GB, free: 17.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.7319, allocations: 8.031 kB / 0.5938 GB, free: 17.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003325/0.7353, allocations: 0.5977 MB / 0.5944 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006482/0.7418, allocations: 2.56 MB / 0.5969 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.7419, allocations: 234.7 kB / 0.5971 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005125/0.7424, allocations: 316.3 kB / 0.5974 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006119/0.7486, allocations: 4.003 MB / 0.6013 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.252e-05/0.7487, allocations: 7.938 kB / 0.6013 GB, free: 9.586 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/0.749, allocations: 128 kB / 0.6015 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.7491, allocations: 146.2 kB / 0.6016 GB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005219/0.7543, allocations: 3.167 MB / 0.6047 GB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02008/0.7744, allocations: 13.64 MB / 0.618 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004424/0.7789, allocations: 4.27 MB / 0.6222 GB, free: 3.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.7807, allocations: 1.035 MB / 0.6232 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005834/0.7865, allocations: 2.89 MB / 0.626 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.7866, allocations: 47.55 kB / 0.6261 GB, free: 15.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.496e-06/0.7866, allocations: 0 / 0.6261 GB, free: 15.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.01367/0.8003, allocations: 6.434 MB / 0.6324 GB, free: 8.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.8004, allocations: 68.72 kB / 0.6324 GB, free: 8.465 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002951/0.8033, allocations: 1.883 MB / 0.6343 GB, free: 6.539 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.8034, allocations: 53.7 kB / 0.6343 GB, free: 6.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.8046, allocations: 1.521 MB / 0.6358 GB, free: 4.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/0.805, allocations: 488.9 kB / 0.6363 GB, free: 4.457 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.983e-05/0.8051, allocations: 40 kB / 0.6363 GB, free: 4.418 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.8053, allocations: 381.9 kB / 0.6367 GB, free: 4.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.8066, allocations: 0.7652 MB / 0.6374 GB, free: 3.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.8083, allocations: 1.35 MB / 0.6387 GB, free: 1.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/0.8113, allocations: 2.298 MB / 0.641 GB, free: 15.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.8113, allocations: 4 kB / 0.641 GB, free: 15.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.004148/0.8155, allocations: 2.462 MB / 0.6434 GB, free: 12.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.8155, allocations: 16 kB / 0.6434 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/0.8156, allocations: 16 kB / 0.6434 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.8159, allocations: 118.5 kB / 0.6435 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/0.8176, allocations: 475.6 kB / 0.644 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.8186, allocations: 1.312 MB / 0.6453 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.8203, allocations: 119.7 kB / 0.6454 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.8204, allocations: 80 kB / 0.6455 GB, free: 10.35 MB / 426.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 227 * 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.002193/0.8226, allocations: 0.989 MB / 0.6464 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003977/0.823, allocations: 205.5 kB / 0.6466 GB, free: 9.148 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.8264, allocations: 1.958 MB / 0.6485 GB, free: 7.172 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.8264, allocations: 16 kB / 0.6485 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.8264, allocations: 0 / 0.6485 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.8264, allocations: 7.969 kB / 0.6486 GB, free: 7.148 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00859/0.835, allocations: 5.012 MB / 0.6534 GB, free: 2.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.8351, allocations: 4 kB / 0.6534 GB, free: 2.027 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.8365, allocations: 311.8 kB / 0.6537 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003048/0.8368, allocations: 94.52 kB / 0.6538 GB, free: 1.621 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.8369, allocations: 28 kB / 0.6539 GB, free: 1.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009849/0.8379, allocations: 1.284 MB / 0.6551 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.8379, allocations: 4 kB / 0.6551 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00495/0.8429, allocations: 3.085 MB / 0.6581 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/0.8442, allocations: 470.4 kB / 0.6586 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002468/0.8444, allocations: 28 kB / 0.6586 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.8454, allocations: 79.91 kB / 0.6587 GB, free: 12.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.8456, allocations: 93.19 kB / 0.6588 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-05/0.8457, allocations: 39.98 kB / 0.6588 GB, free: 12.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002233/0.8479, allocations: 1.282 MB / 0.6601 GB, free: 11.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.848, allocations: 0 / 0.6601 GB, free: 11.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002172/0.8501, allocations: 0.5898 MB / 0.6606 GB, free: 10.43 MB / 442.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 (141): * Single equations (assignments): 138 * 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.0007758/0.8509, allocations: 486.5 kB / 0.6611 GB, free: 9.945 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.8544, allocations: 2.193 MB / 0.6632 GB, free: 7.699 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.8544, allocations: 4.188 kB / 0.6632 GB, free: 7.695 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.856, allocations: 1.173 MB / 0.6644 GB, free: 6.465 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003142/0.8592, allocations: 0.502 MB / 0.6649 GB, free: 5.965 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2629/1.122, allocations: 6.759 MB / 0.6715 GB, free: 92.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/1.124, allocations: 2.229 MB / 0.6737 GB, free: 92.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009476/1.125, allocations: 171 kB / 0.6738 GB, free: 92.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.623e-06/1.125, allocations: 0 / 0.6738 GB, free: 92.18 MB / 442.7 MB Notification: Performance of Templates: time 0.08576/1.211, allocations: 87.41 MB / 0.7592 GB, free: 53.74 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches