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.001283/0.001283, allocations: 104.2 kB / 16.5 MB, free: 6.719 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.00127/0.001271, allocations: 194.5 kB / 17.43 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 47.92 kB / 299.9 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1172, allocations: 49.45 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004541/0.1218, allocations: 2.402 MB / 351.8 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.1233, allocations: 0.6817 MB / 352.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.1234, allocations: 4 kB / 352.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.1236, allocations: 19.78 kB / 352.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1238, allocations: 47.62 kB / 352.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.1242, allocations: 75.86 kB / 352.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003887/0.1246, allocations: 247.1 kB / 352.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.1249, allocations: 106.8 kB / 353 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1251, allocations: 111.5 kB / 353.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1253, allocations: 103.6 kB / 353.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.1254, allocations: 16 kB / 353.2 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.89e-05/0.1254, allocations: 20 kB / 353.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.258e-05/0.1255, allocations: 39.84 kB / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.1257, allocations: 119.4 kB / 353.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.126, allocations: 263.3 kB / 353.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1261, allocations: 4 kB / 353.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1261, allocations: 0 / 353.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1261, allocations: 0 / 353.6 MB, free: 0.582 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.001344/0.1274, allocations: 0.6716 MB / 354.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.1275, allocations: 8.031 kB / 354.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1276, allocations: 28.66 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.1281, allocations: 236.6 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-05/0.1282, allocations: 50.27 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.1282, allocations: 20.36 kB / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007163/0.1289, allocations: 256.3 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.129, allocations: 0 / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.129, allocations: 12 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.129, allocations: 4 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005221/0.1295, allocations: 208 kB / 355.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.1311, allocations: 0.7563 MB / 355.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.1317, allocations: 299.2 kB / 356.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004628/0.1322, allocations: 228 kB / 356.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.1323, allocations: 0 / 356.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006199/0.1329, allocations: 316.3 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.076e-06/0.1329, allocations: 0 / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001337/0.1343, allocations: 0.5713 MB / 357.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1344, allocations: 203.9 kB / 357.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.1346, allocations: 186.2 kB / 357.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.1347, allocations: 37.69 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.1348, allocations: 136.8 kB / 357.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.1349, allocations: 75.02 kB / 357.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.1351, allocations: 73.95 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1353, allocations: 330.8 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.1355, allocations: 108.6 kB / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.1358, allocations: 179.2 kB / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006417/0.1365, allocations: 418.8 kB / 359 MB, free: 10.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1365, allocations: 0 / 359 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008678/0.1374, allocations: 438.2 kB / 359.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.1375, allocations: 99.84 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1376, allocations: 7.875 kB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.1376, allocations: 4 kB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.1378, allocations: 43.91 kB / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.1378, allocations: 7.922 kB / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.1381, allocations: 39.92 kB / 359.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.1382, allocations: 16 kB / 359.6 MB, free: 10.17 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.0003854/0.1385, allocations: 229.6 kB / 359.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.693e-05/0.1386, allocations: 27.7 kB / 359.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.846e-05/0.1387, allocations: 26.59 kB / 359.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1387, allocations: 8 kB / 359.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.1388, allocations: 0 / 359.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1388, allocations: 0 / 359.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.1405, allocations: 0.9278 MB / 360.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1405, allocations: 0 / 360.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.1406, allocations: 27.91 kB / 360.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1406, allocations: 4 kB / 360.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.1407, allocations: 8 kB / 360.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1407, allocations: 0 / 360.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1407, allocations: 4 kB / 360.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1418, allocations: 0.6048 MB / 361.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1419, allocations: 100.8 kB / 361.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/0.142, allocations: 19.98 kB / 361.6 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.1422, allocations: 23.98 kB / 361.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1423, allocations: 19.97 kB / 361.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.1424, allocations: 12 kB / 361.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.1426, allocations: 147.1 kB / 361.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1426, allocations: 0 / 361.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.143, allocations: 75.84 kB / 361.9 MB, free: 7.773 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.0002534/0.1432, allocations: 133 kB / 362 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009264/0.1442, allocations: 0.543 MB / 362.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1442, allocations: 4.188 kB / 362.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005121/0.1447, allocations: 398.6 kB / 362.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007325/0.1454, allocations: 135.4 kB / 363.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1467, allocations: 0.5969 MB / 363.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.1471, allocations: 0.7448 MB / 364.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.1473, allocations: 53.88 kB / 364.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.1474, allocations: 19.44 kB / 364.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1474, allocations: 0 / 364.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of Templates: time 0.00847/0.1559, allocations: 3.993 MB / 368.5 MB, free: 1.098 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/jenkins/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/jenkins/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