Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001002/0.001003, allocations: 179.4 kB / 8.474 MB, free: 0.5273 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.2 MB / 214.1 MB, free: 8.578 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008646/0.0008645, allocations: 99.48 kB / 262.1 MB, free: 5.16 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.913e-06, allocations: 0 / 315 MB, free: 2.078 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.0844, allocations: 47.57 MB / 362.5 MB, free: 2.391 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2483/0.3327, allocations: 77.33 MB / 439.9 MB, free: 10.23 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.333, allocations: 69.59 kB / 439.9 MB, free: 10.2 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.01488/0.3478, allocations: 6.731 MB / 446.7 MB, free: 4.91 MB / 322.8 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.3479, allocations: 4 kB / 446.7 MB, free: 4.906 MB / 322.8 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.0007173/0.3486, allocations: 0.5921 MB / 447.3 MB, free: 4.273 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.689e-05/0.3487, allocations: 8.031 kB / 447.3 MB, free: 4.266 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.3488, allocations: 35.61 kB / 447.3 MB, free: 4.23 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.3493, allocations: 252.4 kB / 447.6 MB, free: 3.957 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.3493, allocations: 37.7 kB / 447.6 MB, free: 3.914 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.3494, allocations: 15.91 kB / 447.6 MB, free: 3.898 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002713/0.3497, allocations: 160 kB / 447.8 MB, free: 3.793 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.35, allocations: 210.1 kB / 448 MB, free: 3.629 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.35, allocations: 0 / 448 MB, free: 3.629 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.35, allocations: 4 kB / 448 MB, free: 3.625 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.35, allocations: 4 kB / 448 MB, free: 3.621 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.3513, allocations: 0.7238 MB / 448.7 MB, free: 2.961 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.3516, allocations: 244.6 kB / 448.9 MB, free: 2.785 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.3518, allocations: 200.3 kB / 449.1 MB, free: 2.652 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.3519, allocations: 0 / 449.1 MB, free: 2.652 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.3521, allocations: 279.9 kB / 449.4 MB, free: 2.395 MB / 322.8 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.3521, allocations: 0 / 449.4 MB, free: 2.395 MB / 322.8 MB Notification: Performance of matching and sorting (n=31): time 0.0004023/0.3525, allocations: 265.9 kB / 449.7 MB, free: 2.188 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.3526, allocations: 235.6 kB / 449.9 MB, free: 1.914 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.3527, allocations: 156.2 kB / 450.1 MB, free: 1.777 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.3528, allocations: 32.77 kB / 450.1 MB, free: 1.742 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.3529, allocations: 123.7 kB / 450.2 MB, free: 1.625 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.3529, allocations: 70.19 kB / 450.3 MB, free: 1.566 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.3529, allocations: 6 kB / 450.3 MB, free: 1.562 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 8.75e-05/0.353, allocations: 338 kB / 450.6 MB, free: 1.234 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.3532, allocations: 89.48 kB / 450.7 MB, free: 1.168 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.3533, allocations: 152.2 kB / 450.8 MB, free: 1.031 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.3535, allocations: 104.9 kB / 450.9 MB, free: 0.957 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3535, allocations: 0 / 450.9 MB, free: 0.957 MB / 322.8 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003673/0.3538, allocations: 305.1 kB / 451.2 MB, free: 0.7148 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3539, allocations: 9.406 kB / 451.3 MB, free: 0.707 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3539, allocations: 0 / 451.3 MB, free: 0.707 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3539, allocations: 4 kB / 451.3 MB, free: 0.7031 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.3541, allocations: 43.89 kB / 451.3 MB, free: 0.6602 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.3541, allocations: 7.938 kB / 451.3 MB, free: 0.6523 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.3543, allocations: 24.02 kB / 451.3 MB, free: 0.6289 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.3543, allocations: 15.62 kB / 451.3 MB, free: 0.6172 MB / 322.8 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.0001433/0.3545, allocations: 202.6 kB / 451.5 MB, free: 416 kB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.085e-05/0.3545, allocations: 23.81 kB / 451.6 MB, free: 392 kB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.3546, allocations: 21.91 kB / 451.6 MB, free: 380 kB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3546, allocations: 4 kB / 451.6 MB, free: 376 kB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3546, allocations: 0 / 451.6 MB, free: 376 kB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3546, allocations: 3.984 kB / 451.6 MB, free: 372 kB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008247/0.3554, allocations: 0.7649 MB / 452.4 MB, free: 15.67 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3555, allocations: 0 / 452.4 MB, free: 15.67 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.3556, allocations: 24.92 kB / 452.4 MB, free: 15.64 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3556, allocations: 0 / 452.4 MB, free: 15.64 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.3557, allocations: 8 kB / 452.4 MB, free: 15.64 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3557, allocations: 0 / 452.4 MB, free: 15.64 MB / 338.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3557, allocations: 0 / 452.4 MB, free: 15.64 MB / 338.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004866/0.3562, allocations: 419.2 kB / 452.8 MB, free: 15.27 MB / 338.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/0.3562, allocations: 100.1 kB / 452.9 MB, free: 15.16 MB / 338.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.3563, allocations: 11.44 kB / 452.9 MB, free: 15.15 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.3566, allocations: 29.3 kB / 452.9 MB, free: 15.12 MB / 338.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.3567, allocations: 23.33 kB / 453 MB, free: 15.11 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.3567, allocations: 11.19 kB / 453 MB, free: 15.1 MB / 338.8 MB Notification: Performance of sort global known variables: time 8.798e-05/0.3568, allocations: 124.2 kB / 453.1 MB, free: 14.99 MB / 338.8 MB Notification: Performance of remove unused functions: time 0.0003586/0.3572, allocations: 67.83 kB / 453.2 MB, free: 14.92 MB / 338.8 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.0001925/0.3574, allocations: 138.8 kB / 453.3 MB, free: 14.78 MB / 338.8 MB Notification: Performance of simCode: created initialization part: time 0.0005113/0.3579, allocations: 354 kB / 453.6 MB, free: 14.49 MB / 338.8 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3579, allocations: 0 / 453.6 MB, free: 14.49 MB / 338.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003726/0.3583, allocations: 314.2 kB / 454 MB, free: 14.27 MB / 338.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.3589, allocations: 116.3 kB / 454.1 MB, free: 14.18 MB / 338.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007657/0.3597, allocations: 373.9 kB / 454.4 MB, free: 13.84 MB / 338.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000356/0.3601, allocations: 0.7773 MB / 455.2 MB, free: 13.05 MB / 338.8 MB Notification: Performance of SimCode: time 2.2e-07/0.3601, allocations: 0 / 455.2 MB, free: 13.05 MB / 338.8 MB Notification: Performance of Templates: time 0.007561/0.3676, allocations: 4.08 MB / 459.3 MB, free: 9.027 MB / 338.8 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches