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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001042, allocations: 94.66 kB / 17.3 MB, free: 6.34 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.0008612/0.0008612, allocations: 184.4 kB / 18.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.893/1.893, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005469/0.000547, allocations: 12 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1628, allocations: 47.59 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003371/0.1662, allocations: 2.025 MB / 331 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1679, allocations: 0.6983 MB / 331.7 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.1682, allocations: 3.938 kB / 331.7 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.1684, allocations: 23.84 kB / 331.7 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.1687, allocations: 51.61 kB / 331.8 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.1692, allocations: 71.86 kB / 331.8 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.1697, allocations: 251 kB / 332.1 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.17, allocations: 102.9 kB / 332.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.1703, allocations: 91.62 kB / 332.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.1705, allocations: 103.5 kB / 332.4 MB, free: 336 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.444e-05/0.1705, allocations: 12 kB / 332.4 MB, free: 324 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.698e-05/0.1706, allocations: 8 kB / 332.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.887e-05/0.1707, allocations: 43.78 kB / 332.4 MB, free: 272 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.1709, allocations: 133.1 kB / 332.6 MB, free: 132 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.1712, allocations: 255.3 kB / 332.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1712, allocations: 0 / 332.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.1713, allocations: 4 kB / 332.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1713, allocations: 0 / 332.8 MB, free: 15.88 MB / 286.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.001164/0.1724, allocations: 0.6365 MB / 333.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.1725, allocations: 12.03 kB / 333.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1726, allocations: 32.56 kB / 333.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.173, allocations: 232.6 kB / 333.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.1731, allocations: 54.2 kB / 333.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.1732, allocations: 20.36 kB / 333.8 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007139/0.1739, allocations: 268.3 kB / 334 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.1739, allocations: 0 / 334 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.1739, allocations: 4 kB / 334.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.174, allocations: 4 kB / 334.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005267/0.1745, allocations: 220.3 kB / 334.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.176, allocations: 0.7717 MB / 335 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.1767, allocations: 307.2 kB / 335.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.1772, allocations: 236.9 kB / 335.6 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.1772, allocations: 0 / 335.6 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005757/0.1778, allocations: 320.3 kB / 335.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.1778, allocations: 0 / 335.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001261/0.1791, allocations: 0.5903 MB / 336.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.1792, allocations: 203.9 kB / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.1794, allocations: 183.1 kB / 336.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.1795, allocations: 45.69 kB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1796, allocations: 128.8 kB / 337 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.459e-05/0.1796, allocations: 75.02 kB / 337.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.116e-05/0.1797, allocations: 45.69 kB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1799, allocations: 330.8 kB / 337.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.1802, allocations: 120.6 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.1804, allocations: 179.1 kB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006689/0.1811, allocations: 429.5 kB / 338.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1811, allocations: 0 / 338.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008188/0.182, allocations: 458.1 kB / 338.6 MB, free: 9.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.911e-05/0.1821, allocations: 93.09 kB / 338.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.1821, allocations: 7.938 kB / 338.7 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.1821, allocations: 0 / 338.7 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.1824, allocations: 43.92 kB / 338.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1824, allocations: 4 kB / 338.8 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.1826, allocations: 43.77 kB / 338.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.1826, allocations: 12 kB / 338.8 MB, free: 9.414 MB / 286.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.0002996/0.1829, allocations: 235.8 kB / 339.1 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.183, allocations: 27.72 kB / 339.1 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.048e-05/0.1831, allocations: 34.52 kB / 339.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1831, allocations: 192 / 339.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.1831, allocations: 4 kB / 339.1 MB, free: 9.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1831, allocations: 3.938 kB / 339.1 MB, free: 9.086 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.1848, allocations: 0.9474 MB / 340.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1848, allocations: 0 / 340.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1849, allocations: 24.02 kB / 340.1 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1849, allocations: 0 / 340.1 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/0.185, allocations: 15.98 kB / 340.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.185, allocations: 0 / 340.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.185, allocations: 0 / 340.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.1861, allocations: 0.6291 MB / 340.7 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.782e-05/0.1862, allocations: 100.8 kB / 340.8 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.969e-05/0.1862, allocations: 16 kB / 340.9 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.1865, allocations: 31.97 kB / 340.9 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.1866, allocations: 19.97 kB / 340.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.1866, allocations: 15.98 kB / 340.9 MB, free: 7.168 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.1867, allocations: 131.2 kB / 341.1 MB, free: 7.039 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1867, allocations: 0 / 341.1 MB, free: 7.039 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003767/0.1871, allocations: 71.84 kB / 341.1 MB, free: 6.969 MB / 286.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.0002221/0.1873, allocations: 136.9 kB / 341.3 MB, free: 6.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009049/0.1883, allocations: 0.5601 MB / 341.8 MB, free: 6.227 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1883, allocations: 0 / 341.8 MB, free: 6.227 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.1889, allocations: 402.9 kB / 342.2 MB, free: 5.809 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.1897, allocations: 136.5 kB / 342.3 MB, free: 5.676 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.191, allocations: 0.6249 MB / 343 MB, free: 5.027 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.1914, allocations: 0.7408 MB / 343.7 MB, free: 4.262 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001832/0.1916, allocations: 53.89 kB / 343.8 MB, free: 4.211 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.814e-05/0.1916, allocations: 23.44 kB / 343.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1917, allocations: 0 / 343.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of Templates: time 0.009838/0.2015, allocations: 3.989 MB / 347.8 MB, free: 212 kB / 286.1 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