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.001003/0.001003, allocations: 95.58 kB / 16.3 MB, free: 5.992 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.0009619/0.0009621, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.525/1.525, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.000295, allocations: 11.62 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002437/0.1155, allocations: 1.93 MB / 353.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000956/0.1165, allocations: 0.6432 MB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1166, allocations: 0 / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.1168, allocations: 23.84 kB / 353.7 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1169, allocations: 63.8 kB / 353.8 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.1171, allocations: 67.8 kB / 353.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.1174, allocations: 163.7 kB / 354 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.1176, allocations: 81.25 kB / 354.1 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.1178, allocations: 95.67 kB / 354.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.1179, allocations: 95.59 kB / 354.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.118, allocations: 8 kB / 354.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.266e-05/0.118, allocations: 12 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.677e-05/0.1181, allocations: 35.84 kB / 354.3 MB, free: 8.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.1182, allocations: 65.58 kB / 354.4 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1184, allocations: 199.5 kB / 354.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1184, allocations: 4 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1184, allocations: 0 / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1184, allocations: 0 / 354.6 MB, free: 8.23 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.0009899/0.1194, allocations: 0.6288 MB / 355.2 MB, free: 7.535 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1194, allocations: 8.031 kB / 355.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.317e-05/0.1195, allocations: 39.56 kB / 355.3 MB, free: 7.488 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.1198, allocations: 231.4 kB / 355.5 MB, free: 7.219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.792e-05/0.1199, allocations: 53.64 kB / 355.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.12, allocations: 16 kB / 355.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005906/0.1205, allocations: 268.1 kB / 355.8 MB, free: 6.879 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1206, allocations: 0 / 355.8 MB, free: 6.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.1206, allocations: 8 kB / 355.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.1206, allocations: 7.953 kB / 355.9 MB, free: 6.863 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.1211, allocations: 216.1 kB / 356.1 MB, free: 6.652 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.1226, allocations: 0.7681 MB / 356.8 MB, free: 5.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005803/0.1232, allocations: 304.2 kB / 357.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.1232, allocations: 3.938 kB / 357.1 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005519/0.1237, allocations: 331.8 kB / 357.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.863e-06/0.1238, allocations: 0 / 357.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001226/0.125, allocations: 0.7519 MB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.1251, allocations: 211.8 kB / 358.4 MB, free: 4.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.1254, allocations: 179.1 kB / 358.6 MB, free: 3.922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.1254, allocations: 33.7 kB / 358.6 MB, free: 3.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.043e-05/0.1255, allocations: 140.7 kB / 358.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.1256, allocations: 75 kB / 358.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.1256, allocations: 12 kB / 358.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1257, allocations: 334.8 kB / 359.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.1259, allocations: 112.6 kB / 359.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.1262, allocations: 187 kB / 359.5 MB, free: 3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.1265, allocations: 217.8 kB / 359.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1265, allocations: 0 / 359.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007042/0.1273, allocations: 456.7 kB / 360.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.335e-05/0.1274, allocations: 101 kB / 360.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1274, allocations: 0 / 360.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.1274, allocations: 11.94 kB / 360.2 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.1276, allocations: 43.91 kB / 360.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.1276, allocations: 7.984 kB / 360.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.1278, allocations: 35.73 kB / 360.3 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1278, allocations: 12.19 kB / 360.3 MB, free: 2.074 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 ($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.000252/0.1281, allocations: 252.7 kB / 360.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.1282, allocations: 23.75 kB / 360.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.1282, allocations: 26.61 kB / 360.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1282, allocations: 7.984 kB / 360.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1282, allocations: 0 / 360.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1282, allocations: 0 / 360.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.1296, allocations: 0.9075 MB / 361.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1296, allocations: 0 / 361.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1298, allocations: 23.92 kB / 361.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.1298, allocations: 3.953 kB / 361.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.1298, allocations: 11.98 kB / 361.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1298, allocations: 8 kB / 361.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1298, allocations: 0 / 361.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.1309, allocations: 0.6118 MB / 362.2 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.131, allocations: 104.8 kB / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.1311, allocations: 19.94 kB / 362.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1314, allocations: 19.98 kB / 362.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.1315, allocations: 31.95 kB / 362.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.1315, allocations: 12 kB / 362.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1317, allocations: 131.2 kB / 362.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1317, allocations: 0 / 362.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004051/0.1321, allocations: 75.91 kB / 362.6 MB, free: 15.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002505/0.1323, allocations: 136.9 kB / 362.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.1334, allocations: 0.5564 MB / 363.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.1334, allocations: 8.188 kB / 363.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.1339, allocations: 402.6 kB / 363.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006197/0.1346, allocations: 123.4 kB / 363.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.1356, allocations: 0.5967 MB / 364.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.136, allocations: 0.7526 MB / 365.1 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.1361, allocations: 53.89 kB / 365.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.653e-05/0.1362, allocations: 19.81 kB / 365.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1362, allocations: 4 kB / 365.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of Templates: time 0.008432/0.1446, allocations: 3.819 MB / 369 MB, free: 9.156 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","../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