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.001056/0.001056, allocations: 89.06 kB / 16.65 MB, free: 6.59 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.001161/0.001161, allocations: 185 kB / 17.57 MB, free: 6.199 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.542/1.542, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003156, allocations: 7.938 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1458, allocations: 50.42 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003225/0.1491, allocations: 2.051 MB / 353.9 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.1506, allocations: 0.6584 MB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.1507, allocations: 7.938 kB / 354.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.1509, allocations: 23.84 kB / 354.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.151, allocations: 39.62 kB / 354.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.1514, allocations: 87.8 kB / 354.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.1517, allocations: 239.1 kB / 354.9 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.152, allocations: 102.9 kB / 355 MB, free: 232 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1522, allocations: 99.61 kB / 355.1 MB, free: 132 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.1524, allocations: 91.55 kB / 355.2 MB, free: 40 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.1525, allocations: 8 kB / 355.2 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.353e-05/0.1525, allocations: 16 kB / 355.2 MB, free: 16 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.992e-05/0.1526, allocations: 43.91 kB / 355.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1528, allocations: 133.1 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003582/0.1531, allocations: 255.2 kB / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1532, allocations: 0 / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.1532, allocations: 0 / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.1532, allocations: 3.938 kB / 355.7 MB, free: 15.58 MB / 302.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.001082/0.1543, allocations: 0.6327 MB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.1543, allocations: 12.03 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.1544, allocations: 24.66 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.1547, allocations: 237.5 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.546e-05/0.1548, allocations: 46.27 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.1549, allocations: 24.36 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.1555, allocations: 264.3 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1556, allocations: 0 / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.1556, allocations: 8 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1556, allocations: 4 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.1562, allocations: 228.1 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1577, allocations: 0.764 MB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.1583, allocations: 318.3 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004644/0.1588, allocations: 225 kB / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.1588, allocations: 4 kB / 358.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005577/0.1594, allocations: 324.3 kB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.1594, allocations: 0 / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.00132/0.1607, allocations: 0.5986 MB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.161, allocations: 199.9 kB / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.1612, allocations: 178.4 kB / 359.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.1612, allocations: 37.69 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1614, allocations: 140.7 kB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.393e-05/0.1615, allocations: 75.03 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-05/0.1616, allocations: 49.69 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.1618, allocations: 334.8 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.1621, allocations: 108.6 kB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.1624, allocations: 179.3 kB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006408/0.1631, allocations: 422.9 kB / 361 MB, free: 9.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1631, allocations: 0 / 361 MB, free: 9.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008246/0.1639, allocations: 458.1 kB / 361.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.629e-05/0.164, allocations: 97.09 kB / 361.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.164, allocations: 3.938 kB / 361.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1641, allocations: 4.188 kB / 361.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.1643, allocations: 40.02 kB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.1643, allocations: 7.938 kB / 361.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.1645, allocations: 39.67 kB / 361.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.1646, allocations: 16 kB / 361.7 MB, free: 9.133 MB / 302.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.0003502/0.1649, allocations: 241.6 kB / 361.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.165, allocations: 23.72 kB / 361.9 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.927e-05/0.1651, allocations: 30.58 kB / 362 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1651, allocations: 4 kB / 362 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.1651, allocations: 0 / 362 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1651, allocations: 0 / 362 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.1667, allocations: 0.9473 MB / 362.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1667, allocations: 0 / 362.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1669, allocations: 27.98 kB / 362.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1669, allocations: 0 / 362.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.1669, allocations: 7.984 kB / 363 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.1669, allocations: 8 kB / 363 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1669, allocations: 0 / 363 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.1679, allocations: 0.6281 MB / 363.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.169e-05/0.168, allocations: 100.8 kB / 363.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.662e-05/0.1681, allocations: 16 kB / 363.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.1683, allocations: 23.97 kB / 363.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.1685, allocations: 20.16 kB / 363.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.1685, allocations: 19.98 kB / 363.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.1686, allocations: 135.2 kB / 363.9 MB, free: 6.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1686, allocations: 4 kB / 363.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.169, allocations: 75.84 kB / 364 MB, free: 6.688 MB / 302.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.0002458/0.1693, allocations: 132.9 kB / 364.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009024/0.1702, allocations: 0.5587 MB / 364.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1702, allocations: 0 / 364.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005348/0.1707, allocations: 409.5 kB / 365.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007595/0.1715, allocations: 131.2 kB / 365.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1726, allocations: 0.6211 MB / 365.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.1731, allocations: 0.7487 MB / 366.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.1732, allocations: 49.89 kB / 366.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.913e-05/0.1733, allocations: 31.38 kB / 366.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1733, allocations: 0 / 366.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of Templates: time 0.2572/0.4306, allocations: 3.978 MB / 370.6 MB, free: 24.64 MB / 302.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