Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 192.3 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.6 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007832/0.0007832, allocations: 96.75 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002085/0.0002085, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1785, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.001698/0.1802, allocations: 1.998 MB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000771/0.181, allocations: 0.6724 MB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.227e-05/0.1811, allocations: 3.938 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.882e-05/0.1812, allocations: 21.38 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.966e-05/0.1813, allocations: 49.03 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.1816, allocations: 63.86 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1817, allocations: 232.4 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1819, allocations: 106.3 kB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1821, allocations: 91.69 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.1822, allocations: 95.59 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.1822, allocations: 12 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1823, allocations: 13.72 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.537e-05/0.1823, allocations: 35.84 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.773e-05/0.1824, allocations: 133.1 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.1826, allocations: 212.4 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1826, allocations: 0 / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1826, allocations: 7.938 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1826, allocations: 0 / 411.8 MB, free: 23.99 MB / 298.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.0006866/0.1833, allocations: 0.6212 MB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.1834, allocations: 12.03 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.1835, allocations: 40.55 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.1837, allocations: 236.6 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/0.1838, allocations: 46.27 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.1838, allocations: 28.3 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.1843, allocations: 264.1 kB / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1843, allocations: 0 / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.1844, allocations: 8 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.1844, allocations: 7.984 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004615/0.1848, allocations: 220.3 kB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.1858, allocations: 0.7641 MB / 414 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004806/0.1863, allocations: 309.4 kB / 414.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003429/0.1867, allocations: 232.9 kB / 414.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.1867, allocations: 4 kB / 414.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.1871, allocations: 320.3 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.1871, allocations: 0 / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009569/0.1881, allocations: 0.5916 MB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.1882, allocations: 199.9 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.1883, allocations: 194 kB / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1883, allocations: 37.69 kB / 415.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.1884, allocations: 128.8 kB / 416 MB, free: 19.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.921e-05/0.1884, allocations: 82.98 kB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.1884, allocations: 4 kB / 416.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.1885, allocations: 334.8 kB / 416.4 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.1887, allocations: 116.6 kB / 416.5 MB, free: 18.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.1889, allocations: 179.3 kB / 416.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004133/0.1894, allocations: 421.3 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1894, allocations: 0 / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005508/0.1899, allocations: 449.1 kB / 417.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.19, allocations: 93.09 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.19, allocations: 3.938 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.19, allocations: 4 kB / 417.6 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1902, allocations: 47.91 kB / 417.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1902, allocations: 0 / 417.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.1904, allocations: 51.64 kB / 417.7 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.1904, allocations: 12 kB / 417.7 MB, free: 17.58 MB / 298.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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$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.0001463/0.1905, allocations: 235.8 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.1906, allocations: 27.7 kB / 418 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.973e-05/0.1906, allocations: 26.59 kB / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1906, allocations: 4 kB / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1906, allocations: 4 kB / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1906, allocations: 3.984 kB / 418 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1917, allocations: 0.9381 MB / 419 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1917, allocations: 4.031 kB / 419 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.1918, allocations: 28.16 kB / 419 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1918, allocations: 0 / 419 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.1919, allocations: 15.92 kB / 419 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1919, allocations: 4 kB / 419 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1919, allocations: 0 / 419 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007611/0.1926, allocations: 0.6291 MB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.1927, allocations: 96.86 kB / 419.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.1928, allocations: 19.98 kB / 419.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.193, allocations: 23.98 kB / 419.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.193, allocations: 19.97 kB / 419.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.1931, allocations: 15.98 kB / 419.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.643e-05/0.1931, allocations: 135.2 kB / 420 MB, free: 15.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1931, allocations: 0 / 420 MB, free: 15.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002914/0.1934, allocations: 83.84 kB / 420 MB, free: 15.14 MB / 298.7 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 (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.0001168/0.1936, allocations: 128.9 kB / 420.2 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006339/0.1942, allocations: 0.5526 MB / 420.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1942, allocations: 0 / 420.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.1946, allocations: 406.9 kB / 421.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.1952, allocations: 118.1 kB / 421.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007129/0.1959, allocations: 0.6304 MB / 421.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.196, allocations: 0.7487 MB / 422.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.1961, allocations: 27.42 kB / 422.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1961, allocations: 0 / 422.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of Templates: time 0.003508/0.1996, allocations: 3.055 MB / 425.7 MB, free: 9.391 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches