Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009441/0.0009442, allocations: 184.9 kB / 8.139 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 221.4 MB / 229.9 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.0009012, allocations: 100.1 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.115e-06/8.135e-06, allocations: 4 kB / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1844, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08246/0.2669, allocations: 78.71 MB / 465.6 MB, free: 8.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001604/0.2671, allocations: 71.97 kB / 465.7 MB, free: 8.031 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01777/0.2848, allocations: 6.877 MB / 472.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.2849, allocations: 4 kB / 472.6 MB, free: 1.188 MB / 346.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.0008891/0.2858, allocations: 0.588 MB / 473.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.2859, allocations: 16.02 kB / 473.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.788e-05/0.286, allocations: 27.62 kB / 473.2 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.2865, allocations: 259.4 kB / 473.4 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.455e-05/0.2865, allocations: 41.7 kB / 473.5 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.2866, allocations: 15.98 kB / 473.5 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003144/0.2869, allocations: 156.4 kB / 473.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.2873, allocations: 211.9 kB / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2873, allocations: 4 kB / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.2873, allocations: 4 kB / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2873, allocations: 4 kB / 473.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2887, allocations: 0.7275 MB / 474.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.289, allocations: 247.5 kB / 474.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/0.2894, allocations: 193.4 kB / 475 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.2894, allocations: 7.906 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.2897, allocations: 274 kB / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.2897, allocations: 0 / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004398/0.2902, allocations: 265.4 kB / 475.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.2903, allocations: 229.5 kB / 475.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.2905, allocations: 158 kB / 475.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.2905, allocations: 33.73 kB / 476 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.2906, allocations: 128.4 kB / 476.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.189e-05/0.2907, allocations: 67.11 kB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.2907, allocations: 0 / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2908, allocations: 338.7 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.2909, allocations: 92.67 kB / 476.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.2911, allocations: 147.9 kB / 476.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.2913, allocations: 109.6 kB / 476.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2913, allocations: 4 kB / 476.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004163/0.2917, allocations: 296 kB / 477.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.2917, allocations: 8.156 kB / 477.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2918, allocations: 0 / 477.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2918, allocations: 4 kB / 477.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.292, allocations: 44.56 kB / 477.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.292, allocations: 6.422 kB / 477.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.2922, allocations: 31.83 kB / 477.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.2922, allocations: 8 kB / 477.2 MB, free: 12.2 MB / 362.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 () * 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.0001756/0.2924, allocations: 209.8 kB / 477.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.2925, allocations: 23.72 kB / 477.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.2925, allocations: 18.66 kB / 477.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.2925, allocations: 5.219 kB / 477.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2925, allocations: 4 kB / 477.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.2925, allocations: 3.984 kB / 477.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008838/0.2934, allocations: 0.7565 MB / 478.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2934, allocations: 0 / 478.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.2936, allocations: 28.02 kB / 478.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.2936, allocations: 4 kB / 478.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.2936, allocations: 4 kB / 478.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2936, allocations: 0 / 478.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2936, allocations: 3.984 kB / 478.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004723/0.2941, allocations: 421.7 kB / 478.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.2942, allocations: 104.8 kB / 478.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.028e-05/0.2943, allocations: 16 kB / 478.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.2945, allocations: 21.3 kB / 478.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.2946, allocations: 23.95 kB / 478.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.2947, allocations: 16 kB / 478.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.295e-05/0.2947, allocations: 124.2 kB / 479 MB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003295/0.2951, allocations: 63.84 kB / 479.1 MB, free: 10.25 MB / 362.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) * 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.0001633/0.2953, allocations: 130.1 kB / 479.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004364/0.2957, allocations: 356.3 kB / 479.5 MB, free: 9.754 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2957, allocations: 4.25 kB / 479.5 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.296, allocations: 319.2 kB / 479.9 MB, free: 9.426 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.2966, allocations: 121.4 kB / 480 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.2974, allocations: 365.4 kB / 480.3 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.2977, allocations: 0.7703 MB / 481.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2977, allocations: 0.8438 kB / 481.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of Templates: time 0.007019/0.3048, allocations: 4.088 MB / 485.2 MB, free: 4.109 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches