Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009019/0.000902, allocations: 177.3 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000734/0.0007339, allocations: 96.45 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002355, allocations: 7.938 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 50.42 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00207/0.2224, allocations: 1.991 MB / 406.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2234, allocations: 0.8603 MB / 407.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.427e-05/0.2236, allocations: 4.656 kB / 407.4 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2237, allocations: 31.77 kB / 407.5 MB, free: 28.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.934e-05/0.2238, allocations: 41.36 kB / 407.5 MB, free: 28.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.2241, allocations: 85.03 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001976/0.2243, allocations: 231.1 kB / 407.8 MB, free: 28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.2245, allocations: 107.3 kB / 407.9 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.2246, allocations: 107.6 kB / 408 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.2248, allocations: 91.55 kB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.2248, allocations: 8 kB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.909e-05/0.2248, allocations: 12 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/0.2249, allocations: 35.84 kB / 408.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.225, allocations: 137.1 kB / 408.3 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.2252, allocations: 260.5 kB / 408.6 MB, free: 27.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2252, allocations: 11.94 kB / 408.6 MB, free: 27.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2252, allocations: 0 / 408.6 MB, free: 27.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.2252, allocations: 0 / 408.6 MB, free: 27.25 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.0007558/0.226, allocations: 0.6212 MB / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.226, allocations: 12.03 kB / 409.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.2261, allocations: 32.5 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.2263, allocations: 239.4 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/0.2264, allocations: 50.25 kB / 409.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.2264, allocations: 20.38 kB / 409.5 MB, free: 26.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.227, allocations: 268.2 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.227, allocations: 0 / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.227, allocations: 8 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2271, allocations: 4 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.2275, allocations: 220.1 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.2285, allocations: 0.7602 MB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.229, allocations: 308 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.2294, allocations: 230.1 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.2294, allocations: 7.984 kB / 411.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004061/0.2298, allocations: 324.3 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.382e-06/0.2298, allocations: 0 / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.000929/0.2308, allocations: 0.5883 MB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.2308, allocations: 203.9 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.231, allocations: 191 kB / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.231, allocations: 33.7 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.395e-05/0.2311, allocations: 136.7 kB / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.599e-05/0.2311, allocations: 79 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.2311, allocations: 4 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.691e-05/0.2312, allocations: 334.8 kB / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.2314, allocations: 120.6 kB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.2316, allocations: 175.3 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.232, allocations: 424.2 kB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.232, allocations: 0 / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005475/0.2326, allocations: 446.3 kB / 414.3 MB, free: 21.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.273e-05/0.2326, allocations: 89.09 kB / 414.4 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.2327, allocations: 7.938 kB / 414.4 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2327, allocations: 4 kB / 414.4 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.2328, allocations: 43.91 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.2329, allocations: 4 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.233, allocations: 51.64 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.2331, allocations: 12 kB / 414.5 MB, free: 20.87 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.2332, allocations: 235.8 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.2333, allocations: 23.72 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.2333, allocations: 26.59 kB / 414.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2333, allocations: 4 kB / 414.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2333, allocations: 4 kB / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2334, allocations: 3.984 kB / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.2344, allocations: 0.9396 MB / 415.8 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2344, allocations: 0 / 415.8 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.2346, allocations: 31.95 kB / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2346, allocations: 0 / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2346, allocations: 8 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2346, allocations: 4 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2346, allocations: 3.984 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007207/0.2354, allocations: 0.6291 MB / 416.4 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.2354, allocations: 97.05 kB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.2355, allocations: 19.98 kB / 416.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.2357, allocations: 27.92 kB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.2357, allocations: 19.97 kB / 416.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.2358, allocations: 15.98 kB / 416.6 MB, free: 18.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.06e-05/0.2358, allocations: 138.6 kB / 416.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2359, allocations: 0 / 416.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002819/0.2361, allocations: 75.84 kB / 416.8 MB, free: 18.43 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 (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.0001395/0.2363, allocations: 141 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.2369, allocations: 0.5527 MB / 417.5 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.237, allocations: 0 / 417.5 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003832/0.2373, allocations: 411.8 kB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.238, allocations: 135 kB / 418 MB, free: 17.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008534/0.2389, allocations: 0.6172 MB / 418.7 MB, free: 16.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.2391, allocations: 0.7448 MB / 419.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.2392, allocations: 45.91 kB / 419.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/0.2393, allocations: 19.44 kB / 419.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2393, allocations: 0 / 419.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of Templates: time 0.006496/0.2458, allocations: 4.002 MB / 423.5 MB, free: 11.7 MB / 298.7 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","../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