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.002179/0.002179, allocations: 106.5 kB / 17.16 MB, free: 6.082 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.002664/0.002664, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.081/3.081, allocations: 222.9 MB / 241.8 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 50.81 kB / 300.6 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1797, allocations: 49.45 MB / 350.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005983/0.1858, allocations: 2.41 MB / 352.5 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.1881, allocations: 0.674 MB / 353.1 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1883, allocations: 3.938 kB / 353.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002437/0.1887, allocations: 19.84 kB / 353.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.1889, allocations: 51.61 kB / 353.2 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.1894, allocations: 75.86 kB / 353.3 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005071/0.1899, allocations: 251 kB / 353.5 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003846/0.1903, allocations: 106.8 kB / 353.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.1907, allocations: 103.6 kB / 353.7 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.191, allocations: 111.6 kB / 353.8 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.191, allocations: 16 kB / 353.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.865e-05/0.1911, allocations: 12 kB / 353.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1913, allocations: 51.77 kB / 353.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.1916, allocations: 115.4 kB / 354 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.192, allocations: 203.8 kB / 354.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.192, allocations: 0 / 354.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.192, allocations: 0 / 354.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.192, allocations: 0 / 354.2 MB, free: 0.6211 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.001892/0.1939, allocations: 0.6677 MB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.196e-05/0.194, allocations: 8.031 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.1942, allocations: 28.66 kB / 354.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.1947, allocations: 236.6 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.1948, allocations: 58.19 kB / 355.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-05/0.1949, allocations: 16.38 kB / 355.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.196, allocations: 260.3 kB / 355.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1961, allocations: 3.938 kB / 355.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.99e-05/0.1962, allocations: 12 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1962, allocations: 4 kB / 355.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009666/0.1972, allocations: 204.1 kB / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.1998, allocations: 0.7563 MB / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.2007, allocations: 295.1 kB / 356.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006696/0.2014, allocations: 232.9 kB / 357 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.2015, allocations: 0 / 357 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008474/0.2024, allocations: 312.3 kB / 357.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.485e-06/0.2024, allocations: 0 / 357.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.00204/0.2044, allocations: 0.5829 MB / 357.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002298/0.2047, allocations: 203.9 kB / 358.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.205, allocations: 178.3 kB / 358.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/0.2051, allocations: 33.7 kB / 358.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003012/0.2054, allocations: 132.8 kB / 358.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.2055, allocations: 82.98 kB / 358.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.2058, allocations: 66.03 kB / 358.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002871/0.2061, allocations: 330.8 kB / 358.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.2067, allocations: 116.6 kB / 359 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/0.2072, allocations: 167.3 kB / 359.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.2083, allocations: 424.2 kB / 359.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.2083, allocations: 0 / 359.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00147/0.2098, allocations: 442.1 kB / 360 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002453/0.2101, allocations: 93.09 kB / 360.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.2101, allocations: 7.922 kB / 360.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.2102, allocations: 4 kB / 360.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.2105, allocations: 39.92 kB / 360.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2105, allocations: 4.094 kB / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.211, allocations: 31.83 kB / 360.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.211, allocations: 12 kB / 360.2 MB, free: 10.23 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.0004526/0.2115, allocations: 241.6 kB / 360.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.2116, allocations: 23.72 kB / 360.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.2117, allocations: 34.58 kB / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.2118, allocations: 7.938 kB / 360.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.2118, allocations: 0 / 360.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.2118, allocations: 0 / 360.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.2146, allocations: 0.9278 MB / 361.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.2146, allocations: 0 / 361.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2148, allocations: 23.98 kB / 361.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.2149, allocations: 4 kB / 361.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.998e-05/0.2149, allocations: 11.98 kB / 361.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.215, allocations: 4.031 kB / 361.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.215, allocations: 4 kB / 361.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.2168, allocations: 0.6086 MB / 362.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.217, allocations: 96.86 kB / 362.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.2171, allocations: 19.98 kB / 362.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004297/0.2175, allocations: 19.98 kB / 362.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.2177, allocations: 19.97 kB / 362.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.2178, allocations: 15.98 kB / 362.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.218, allocations: 139.3 kB / 362.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.218, allocations: 0 / 362.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006709/0.2187, allocations: 83.78 kB / 362.5 MB, free: 7.812 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.0002504/0.219, allocations: 132.9 kB / 362.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.2205, allocations: 0.5511 MB / 363.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.2206, allocations: 0 / 363.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.2217, allocations: 394.6 kB / 363.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.2231, allocations: 136.8 kB / 363.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.2251, allocations: 0.6337 MB / 364.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006635/0.2258, allocations: 0.7448 MB / 365 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.2259, allocations: 23.44 kB / 365.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2259, allocations: 0 / 365.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of Templates: time 0.01102/0.237, allocations: 3.093 MB / 368.2 MB, free: 2.023 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/jenkins1/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/jenkins1/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