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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 240.3 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009113/0.0009115, allocations: 88.23 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002595, allocations: 15.94 kB / 351.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2879, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3988, allocations: 79.51 MB / 481 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.3992, allocations: 71.95 kB / 481.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01757/0.4167, allocations: 7.256 MB / 488.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.261e-06/0.4168, allocations: 3.984 kB / 488.3 MB, free: 9.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.4168, allocations: 4 kB / 488.3 MB, free: 9.629 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.0009126/0.4177, allocations: 0.6136 MB / 489 MB, free: 8.949 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.4178, allocations: 8.031 kB / 489 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.369e-05/0.4179, allocations: 23.72 kB / 489 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.4183, allocations: 253 kB / 489.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.4184, allocations: 49.69 kB / 489.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.4184, allocations: 23.95 kB / 489.3 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.419, allocations: 259.9 kB / 489.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.419, allocations: 0 / 489.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.419, allocations: 8 kB / 489.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.419, allocations: 11.92 kB / 489.6 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00048/0.4195, allocations: 216.3 kB / 489.8 MB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.4209, allocations: 0.7526 MB / 490.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.4215, allocations: 315.3 kB / 490.8 MB, free: 6.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.4215, allocations: 3.984 kB / 490.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000512/0.422, allocations: 329.8 kB / 491.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.422, allocations: 0 / 491.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001358/0.4234, allocations: 0.7543 MB / 491.9 MB, free: 5.762 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001511/0.4236, allocations: 203.9 kB / 492.1 MB, free: 5.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.4238, allocations: 158.2 kB / 492.3 MB, free: 5.359 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.4238, allocations: 45.69 kB / 492.3 MB, free: 5.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.4239, allocations: 128.8 kB / 492.5 MB, free: 5.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.424, allocations: 78.98 kB / 492.5 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/0.4241, allocations: 11.94 kB / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.4243, allocations: 335 kB / 492.9 MB, free: 4.754 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.4245, allocations: 112.6 kB / 493 MB, free: 4.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.4248, allocations: 187 kB / 493.2 MB, free: 4.434 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.4252, allocations: 225.7 kB / 493.4 MB, free: 4.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4252, allocations: 0 / 493.4 MB, free: 4.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007466/0.426, allocations: 461.2 kB / 493.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.4261, allocations: 97.09 kB / 493.9 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4261, allocations: 3.938 kB / 493.9 MB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.4261, allocations: 4 kB / 493.9 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.4263, allocations: 39.92 kB / 494 MB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.4263, allocations: 0 / 494 MB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.4266, allocations: 35.86 kB / 494 MB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.4266, allocations: 19.98 kB / 494 MB, free: 3.508 MB / 362.7 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 ($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.0002859/0.4269, allocations: 236.8 kB / 494.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.4269, allocations: 23.81 kB / 494.3 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.842e-05/0.427, allocations: 26.64 kB / 494.3 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.427, allocations: 4 kB / 494.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.427, allocations: 192 / 494.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4271, allocations: 0 / 494.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.4285, allocations: 0.9113 MB / 495.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4285, allocations: 0 / 495.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.4286, allocations: 23.98 kB / 495.2 MB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4286, allocations: 0 / 495.2 MB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.4286, allocations: 15.98 kB / 495.3 MB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.4286, allocations: 3.938 kB / 495.3 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4287, allocations: 0 / 495.3 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009791/0.4296, allocations: 0.6196 MB / 495.9 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.263e-05/0.4297, allocations: 92.83 kB / 496 MB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.425e-05/0.4298, allocations: 15.98 kB / 496 MB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.4301, allocations: 31.98 kB / 496 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.4302, allocations: 23.95 kB / 496 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.4302, allocations: 12 kB / 496.1 MB, free: 1.336 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001304/0.4304, allocations: 127.2 kB / 496.2 MB, free: 1.211 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4304, allocations: 0 / 496.2 MB, free: 1.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.4308, allocations: 83.84 kB / 496.3 MB, free: 1.129 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002923/0.4311, allocations: 140.9 kB / 496.4 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009128/0.432, allocations: 0.5604 MB / 497 MB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.432, allocations: 0 / 497 MB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.4325, allocations: 402.6 kB / 497.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005555/0.433, allocations: 134 kB / 497.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.434, allocations: 0.5893 MB / 498.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.4344, allocations: 0.7526 MB / 498.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.4345, allocations: 53.89 kB / 498.9 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.662e-05/0.4346, allocations: 23.44 kB / 498.9 MB, free: 14.37 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4346, allocations: 0 / 498.9 MB, free: 14.37 MB / 378.7 MB Notification: Performance of Templates: time 0.007408/0.442, allocations: 3.835 MB / 0.491 GB, free: 10.59 MB / 378.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