Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.001702/0.001702, allocations: 175.5 kB / 8.153 MB, free: 2.188 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.635/1.635, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001289/0.001289, allocations: 94.12 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.161e-05/1.196e-05, allocations: 0 / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2309, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.3473, allocations: 77.35 MB / 439.2 MB, free: 8.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.3476, allocations: 67.95 kB / 439.2 MB, free: 8.664 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02925/0.3769, allocations: 6.731 MB / 446 MB, free: 1.988 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.377, allocations: 4 kB / 446 MB, free: 1.984 MB / 330.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.001123/0.3781, allocations: 0.5925 MB / 446.6 MB, free: 1.332 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3782, allocations: 12.03 kB / 446.6 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.3783, allocations: 27.62 kB / 446.6 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000611/0.3789, allocations: 255.4 kB / 446.9 MB, free: 1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-05/0.379, allocations: 41.7 kB / 446.9 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.3791, allocations: 19.91 kB / 446.9 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004935/0.3796, allocations: 156.4 kB / 447.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.3802, allocations: 204.2 kB / 447.3 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3802, allocations: 0 / 447.3 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.3802, allocations: 4 kB / 447.3 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3803, allocations: 4 kB / 447.3 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.3825, allocations: 0.7215 MB / 448 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/0.3831, allocations: 247.4 kB / 448.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.3835, allocations: 203.4 kB / 448.4 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3836, allocations: 4 kB / 448.4 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004847/0.3841, allocations: 270 kB / 448.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 3.256e-06/0.3841, allocations: 3.938 kB / 448.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007145/0.3848, allocations: 269.8 kB / 449 MB, free: 14.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.385, allocations: 229.5 kB / 449.2 MB, free: 14.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.3852, allocations: 159.8 kB / 449.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.3853, allocations: 29.7 kB / 449.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3854, allocations: 186.9 kB / 449.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.3855, allocations: 71.08 kB / 449.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.3855, allocations: 0 / 449.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3856, allocations: 326.8 kB / 450 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.3859, allocations: 96.64 kB / 450.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.3862, allocations: 152.2 kB / 450.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.3865, allocations: 106.3 kB / 450.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3866, allocations: 8.031 kB / 450.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007303/0.3873, allocations: 287.2 kB / 450.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3873, allocations: 10.97 kB / 450.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3874, allocations: 0 / 450.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.3874, allocations: 4 kB / 450.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003886/0.3878, allocations: 43.91 kB / 450.6 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.3878, allocations: 4 kB / 450.7 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.3881, allocations: 27.95 kB / 450.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.3882, allocations: 8 kB / 450.7 MB, free: 12.96 MB / 346.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.0002555/0.3884, allocations: 135.6 kB / 450.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.3885, allocations: 23.72 kB / 450.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.163e-05/0.3886, allocations: 18.66 kB / 450.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.3886, allocations: 4 kB / 450.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3887, allocations: 0 / 450.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3887, allocations: 3.984 kB / 450.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.3902, allocations: 0.7722 MB / 451.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3903, allocations: 0 / 451.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.3905, allocations: 23.92 kB / 451.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.3905, allocations: 0 / 451.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.3906, allocations: 8 kB / 451.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.3906, allocations: 3.984 kB / 451.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3906, allocations: 0 / 451.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007892/0.3914, allocations: 413.8 kB / 452.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3915, allocations: 102 kB / 452.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.863e-05/0.3916, allocations: 8 kB / 452.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.3921, allocations: 31.97 kB / 452.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3922, allocations: 19.97 kB / 452.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/0.3923, allocations: 12 kB / 452.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001562/0.3924, allocations: 132.2 kB / 452.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004841/0.3929, allocations: 63.84 kB / 452.4 MB, free: 11.09 MB / 346.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.0002692/0.3932, allocations: 142.3 kB / 452.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007708/0.394, allocations: 348.9 kB / 452.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.394, allocations: 1.406 kB / 452.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.3946, allocations: 315.3 kB / 453.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.3957, allocations: 118.4 kB / 453.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.397, allocations: 397.6 kB / 453.7 MB, free: 9.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005518/0.3976, allocations: 0.774 MB / 454.5 MB, free: 8.938 MB / 346.7 MB Notification: Performance of SimCode: time 4.418e-06/0.3976, allocations: 4 kB / 454.5 MB, free: 8.934 MB / 346.7 MB Notification: Performance of Templates: time 0.007685/0.4053, allocations: 2.888 MB / 457.4 MB, free: 6.07 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches