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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 115.5 kB / 17.07 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 191.9 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3593, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004502/0.3638, allocations: 2.367 MB / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.3652, allocations: 0.67 MB / 403.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.3653, allocations: 3.938 kB / 403.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.3655, allocations: 31.72 kB / 403.8 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.3657, allocations: 55.48 kB / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.3661, allocations: 99.69 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.3665, allocations: 259.1 kB / 404.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.3667, allocations: 115 kB / 404.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.367, allocations: 115.6 kB / 404.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.3672, allocations: 119.5 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.232e-05/0.3672, allocations: 20 kB / 404.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.577e-05/0.3673, allocations: 27.94 kB / 404.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.3673, allocations: 47.84 kB / 404.6 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.3675, allocations: 127.4 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.3679, allocations: 274.7 kB / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3679, allocations: 0 / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3679, allocations: 0 / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3679, allocations: 0 / 405 MB, free: 4.566 MB / 318.1 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.001121/0.369, allocations: 0.687 MB / 405.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3691, allocations: 12.03 kB / 405.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.3692, allocations: 24.8 kB / 405.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.3695, allocations: 233.4 kB / 406 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.192e-05/0.3696, allocations: 54.25 kB / 406 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.3697, allocations: 16.38 kB / 406 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.3703, allocations: 260.3 kB / 406.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3703, allocations: 0 / 406.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.3703, allocations: 7.984 kB / 406.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3704, allocations: 4 kB / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000502/0.3709, allocations: 204.2 kB / 406.5 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.3722, allocations: 0.7602 MB / 407.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.3728, allocations: 296.9 kB / 407.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.3733, allocations: 228.9 kB / 407.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.3733, allocations: 0 / 407.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005379/0.3738, allocations: 321.1 kB / 408.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.946e-06/0.3738, allocations: 3.984 kB / 408.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001232/0.3751, allocations: 0.575 MB / 408.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.3752, allocations: 203.9 kB / 408.9 MB, free: 440 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.3754, allocations: 183 kB / 409.1 MB, free: 248 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3755, allocations: 37.7 kB / 409.1 MB, free: 204 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3756, allocations: 128.9 kB / 409.2 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.3757, allocations: 91.3 kB / 409.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.3758, allocations: 70.02 kB / 409.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.376, allocations: 334.8 kB / 409.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.3763, allocations: 112.6 kB / 409.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.3766, allocations: 167.3 kB / 410 MB, free: 15.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.3772, allocations: 411.5 kB / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.3772, allocations: 8 kB / 410.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007483/0.3779, allocations: 448.8 kB / 410.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.378, allocations: 93.09 kB / 410.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3781, allocations: 3.938 kB / 410.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3781, allocations: 4 kB / 410.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.3783, allocations: 44.02 kB / 411 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.3783, allocations: 3.938 kB / 411 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.3785, allocations: 35.81 kB / 411 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.3785, allocations: 12 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002609/0.3788, allocations: 236.8 kB / 411.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.403e-05/0.3789, allocations: 27.86 kB / 411.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.809e-05/0.3789, allocations: 30.58 kB / 411.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.3789, allocations: 0 / 411.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.379, allocations: 4 kB / 411.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.379, allocations: 0 / 411.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.3804, allocations: 0.9279 MB / 412.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3804, allocations: 4 kB / 412.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.3806, allocations: 27.92 kB / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.3806, allocations: 4 kB / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.3806, allocations: 11.98 kB / 412.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3806, allocations: 3.938 kB / 412.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3806, allocations: 0 / 412.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009871/0.3817, allocations: 0.6166 MB / 412.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.976e-05/0.3818, allocations: 100.9 kB / 413 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.3818, allocations: 15.98 kB / 413 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3821, allocations: 23.98 kB / 413 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.3822, allocations: 27.91 kB / 413.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.3823, allocations: 11.98 kB / 413.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.3824, allocations: 131.2 kB / 413.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3824, allocations: 0 / 413.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004067/0.3828, allocations: 71.94 kB / 413.3 MB, free: 11.73 MB / 334.1 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002797/0.3831, allocations: 141 kB / 413.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.3842, allocations: 0.5405 MB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3842, allocations: 384 / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006108/0.3848, allocations: 409 kB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008381/0.3857, allocations: 147.3 kB / 414.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.3871, allocations: 0.5168 MB / 415 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.3878, allocations: 0.7406 MB / 415.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002427/0.388, allocations: 57.88 kB / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.754e-05/0.3881, allocations: 19.44 kB / 415.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3881, allocations: 0 / 415.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Templates: time 0.01183/0.4, allocations: 4.284 MB / 420.1 MB, free: 4.832 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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