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.0011/0.0011, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.0009974/0.0009974, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.903/1.903, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.00167/0.00167, allocations: 47.88 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.165, allocations: 46.62 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005219/0.1703, allocations: 2.387 MB / 329.2 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.172, allocations: 0.6982 MB / 329.9 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1722, allocations: 3.938 kB / 329.9 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.1725, allocations: 23.84 kB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.1726, allocations: 47.62 kB / 329.9 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.173, allocations: 71.86 kB / 330 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.1735, allocations: 274.9 kB / 330.3 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003385/0.1738, allocations: 107 kB / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.1741, allocations: 119.6 kB / 330.5 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1743, allocations: 115.5 kB / 330.6 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.1743, allocations: 20 kB / 330.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.1744, allocations: 24 kB / 330.6 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.611e-05/0.1745, allocations: 55.83 kB / 330.7 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1747, allocations: 127.3 kB / 330.8 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003751/0.175, allocations: 275.4 kB / 331.1 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.1751, allocations: 0 / 331.1 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1751, allocations: 0 / 331.1 MB, free: 456 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.1751, allocations: 0 / 331.1 MB, free: 456 kB / 270.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.001373/0.1765, allocations: 0.6714 MB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/0.1765, allocations: 8.031 kB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.884e-05/0.1766, allocations: 28.66 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.177, allocations: 236.6 kB / 332 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.1772, allocations: 54.25 kB / 332.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1772, allocations: 20.31 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006749/0.1779, allocations: 264.3 kB / 332.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1779, allocations: 0 / 332.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.178, allocations: 8 kB / 332.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.178, allocations: 8 kB / 332.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.1785, allocations: 204.3 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.1801, allocations: 0.7639 MB / 333.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.1807, allocations: 299.1 kB / 333.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/0.1811, allocations: 228.9 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1812, allocations: 4 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005747/0.1818, allocations: 312.3 kB / 334.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.1818, allocations: 4 kB / 334.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.00124/0.183, allocations: 0.5707 MB / 334.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001999/0.1832, allocations: 199.9 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.1835, allocations: 179.2 kB / 335.1 MB, free: 12.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.1835, allocations: 37.7 kB / 335.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1836, allocations: 136.7 kB / 335.3 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.1837, allocations: 75.09 kB / 335.4 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1838, allocations: 66.03 kB / 335.4 MB, free: 11.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.184, allocations: 334.8 kB / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.1842, allocations: 112.6 kB / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.1845, allocations: 167.1 kB / 336 MB, free: 11.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005608/0.1851, allocations: 421.5 kB / 336.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1851, allocations: 0 / 336.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006772/0.1858, allocations: 442.1 kB / 336.9 MB, free: 10.26 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.196e-05/0.1859, allocations: 97.09 kB / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1859, allocations: 3.938 kB / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.1859, allocations: 4 kB / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.1861, allocations: 39.91 kB / 337 MB, free: 10.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.1862, allocations: 7.984 kB / 337 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.1864, allocations: 35.83 kB / 337 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.1864, allocations: 16 kB / 337.1 MB, free: 10.04 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.0002633/0.1867, allocations: 235.9 kB / 337.3 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.1867, allocations: 23.72 kB / 337.3 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.1868, allocations: 34.52 kB / 337.3 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.1868, allocations: 11.92 kB / 337.4 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.1868, allocations: 0 / 337.4 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1868, allocations: 4 kB / 337.4 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.1883, allocations: 0.9279 MB / 338.3 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1883, allocations: 0 / 338.3 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.1884, allocations: 27.98 kB / 338.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1884, allocations: 0 / 338.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.1885, allocations: 4 kB / 338.3 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.1885, allocations: 7.984 kB / 338.3 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1885, allocations: 0 / 338.3 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009439/0.1894, allocations: 0.6135 MB / 338.9 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.076e-05/0.1895, allocations: 100.9 kB / 339 MB, free: 7.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.475e-05/0.1896, allocations: 15.98 kB / 339.1 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.1898, allocations: 23.98 kB / 339.1 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.1899, allocations: 27.97 kB / 339.1 MB, free: 7.844 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.19, allocations: 11.98 kB / 339.1 MB, free: 7.832 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001259/0.1901, allocations: 131.2 kB / 339.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1901, allocations: 0 / 339.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.1905, allocations: 79.84 kB / 339.3 MB, free: 7.625 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.0002572/0.1908, allocations: 128.9 kB / 339.5 MB, free: 7.484 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.1919, allocations: 0.5682 MB / 340 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1919, allocations: 192 / 340 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.1925, allocations: 406.6 kB / 340.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000785/0.1933, allocations: 133.2 kB / 340.5 MB, free: 6.328 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.1947, allocations: 0.6031 MB / 341.2 MB, free: 5.699 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.1952, allocations: 0.7483 MB / 341.9 MB, free: 4.926 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.1954, allocations: 49.89 kB / 341.9 MB, free: 4.879 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.412e-05/0.1955, allocations: 27.81 kB / 342 MB, free: 4.852 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1955, allocations: 0 / 342 MB, free: 4.852 MB / 286.1 MB Notification: Performance of Templates: time 0.009225/0.2047, allocations: 4.191 MB / 346.2 MB, free: 0.6719 MB / 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