Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007252/0.0007253, allocations: 99.28 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002028/0.0002029, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1797, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0899/0.2697, allocations: 80.26 MB / 488.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.27, allocations: 71.97 kB / 489 MB, free: 11.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01832/0.2884, allocations: 7.347 MB / 496.3 MB, free: 3.922 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.2884, allocations: 0 / 496.3 MB, free: 3.922 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.2884, allocations: 4 kB / 496.3 MB, free: 3.918 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008786/0.2893, allocations: 0.6217 MB / 497 MB, free: 3.227 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2894, allocations: 12.03 kB / 497 MB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.2895, allocations: 32.66 kB / 497 MB, free: 3.184 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.2899, allocations: 260.8 kB / 497.3 MB, free: 2.887 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.393e-05/0.29, allocations: 50.25 kB / 497.3 MB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.2901, allocations: 20.38 kB / 497.3 MB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.2907, allocations: 264.2 kB / 497.6 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2907, allocations: 4 kB / 497.6 MB, free: 2.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.2907, allocations: 8 kB / 497.6 MB, free: 2.535 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2907, allocations: 4 kB / 497.6 MB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.2912, allocations: 220.2 kB / 497.8 MB, free: 2.312 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2925, allocations: 0.7603 MB / 498.6 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005728/0.2931, allocations: 303.1 kB / 498.9 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.2935, allocations: 235.8 kB / 499.1 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2936, allocations: 4 kB / 499.1 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004922/0.2941, allocations: 333 kB / 499.4 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.2941, allocations: 0 / 499.4 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001194/0.2953, allocations: 0.5873 MB / 0.4883 GB, free: 15.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.2954, allocations: 233.5 kB / 0.4885 GB, free: 15.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.2956, allocations: 182.8 kB / 0.4887 GB, free: 15.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.2956, allocations: 45.69 kB / 0.4887 GB, free: 15.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.906e-05/0.2957, allocations: 124.8 kB / 0.4889 GB, free: 15.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.962e-05/0.2958, allocations: 75 kB / 0.4889 GB, free: 15.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.2958, allocations: 8 kB / 0.4889 GB, free: 15.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2959, allocations: 338.8 kB / 0.4893 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.2962, allocations: 112.6 kB / 0.4894 GB, free: 14.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.2965, allocations: 176.2 kB / 0.4895 GB, free: 14.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.297, allocations: 434.2 kB / 0.49 GB, free: 14.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.297, allocations: 0 / 0.49 GB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006807/0.2977, allocations: 452.9 kB / 0.4904 GB, free: 13.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.003e-05/0.2978, allocations: 97.09 kB / 0.4905 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2978, allocations: 4 kB / 0.4905 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.2978, allocations: 4 kB / 0.4905 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.298, allocations: 43.91 kB / 0.4905 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.298, allocations: 3.938 kB / 0.4905 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2982, allocations: 35.86 kB / 0.4906 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.2983, allocations: 19.94 kB / 0.4906 GB, free: 13.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002204/0.2985, allocations: 231.8 kB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-05/0.2985, allocations: 27.8 kB / 0.4908 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.142e-05/0.2986, allocations: 26.66 kB / 0.4909 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2986, allocations: 0 / 0.4909 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2987, allocations: 4 kB / 0.4909 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2987, allocations: 0 / 0.4909 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.3001, allocations: 1.02 MB / 0.4919 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3001, allocations: 192 / 0.4919 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.3002, allocations: 27.95 kB / 0.4919 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3002, allocations: 3.938 kB / 0.4919 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.3003, allocations: 12 kB / 0.4919 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3003, allocations: 3.938 kB / 0.4919 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3003, allocations: 0 / 0.4919 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000929/0.3012, allocations: 0.6243 MB / 0.4925 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.3013, allocations: 92.86 kB / 0.4926 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.3014, allocations: 31.92 kB / 0.4926 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.3016, allocations: 23.92 kB / 0.4927 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.3017, allocations: 19.97 kB / 0.4927 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.3017, allocations: 19.97 kB / 0.4927 GB, free: 11.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001005/0.3018, allocations: 132.3 kB / 0.4928 GB, free: 11.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3018, allocations: 0 / 0.4928 GB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000371/0.3022, allocations: 75.84 kB / 0.4929 GB, free: 10.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002016/0.3024, allocations: 145 kB / 0.493 GB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008427/0.3033, allocations: 0.5448 MB / 0.4936 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3033, allocations: 4 kB / 0.4936 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.3038, allocations: 414.8 kB / 0.494 GB, free: 9.781 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.3045, allocations: 135.7 kB / 0.4941 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.3056, allocations: 0.6227 MB / 0.4947 GB, free: 8.996 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.306, allocations: 0.7448 MB / 0.4954 GB, free: 8.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.218e-05/0.3061, allocations: 23.42 kB / 0.4955 GB, free: 8.203 MB / 378.7 MB Notification: Performance of SimCode: time 2.525e-06/0.3061, allocations: 0 / 0.4955 GB, free: 8.203 MB / 378.7 MB Notification: Performance of Templates: time 0.004735/0.3108, allocations: 3.063 MB / 0.4984 GB, free: 5.164 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches