Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008886/0.0008888, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002885, allocations: 4 kB / 307.1 MB, free: 1.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1093, allocations: 51.53 MB / 358.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002237/0.1115, allocations: 2.007 MB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1126, allocations: 0.7016 MB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.577e-05/0.1127, allocations: 8 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.1128, allocations: 19.78 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.84e-05/0.1129, allocations: 47.61 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.1132, allocations: 75.86 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.1134, allocations: 231.1 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1136, allocations: 97.17 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.1138, allocations: 95.62 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1139, allocations: 99.59 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.114, allocations: 8 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.172e-05/0.114, allocations: 16 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.64e-05/0.1141, allocations: 35.84 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.573e-05/0.1141, allocations: 69.56 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.1144, allocations: 207.7 kB / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1144, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1144, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.1144, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.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.0008527/0.1152, allocations: 0.6287 MB / 362.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1153, allocations: 8.031 kB / 363 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.1155, allocations: 43.7 kB / 363 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1157, allocations: 246.6 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.1158, allocations: 49.7 kB / 363.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.1159, allocations: 19.94 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005549/0.1164, allocations: 275.9 kB / 363.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1164, allocations: 0 / 363.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.1165, allocations: 4 kB / 363.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1165, allocations: 4 kB / 363.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000464/0.1169, allocations: 216.3 kB / 363.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.1182, allocations: 0.7642 MB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000553/0.1187, allocations: 314.7 kB / 364.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.1191, allocations: 229.4 kB / 365.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.1192, allocations: 4 kB / 365.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000478/0.1196, allocations: 327.3 kB / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.1196, allocations: 0 / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001083/0.1207, allocations: 0.5919 MB / 366 MB, free: 5.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.1208, allocations: 203.9 kB / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.121, allocations: 194.5 kB / 366.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1211, allocations: 37.7 kB / 366.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.1211, allocations: 132.8 kB / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.497e-05/0.1212, allocations: 78.98 kB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.1212, allocations: 8 kB / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1214, allocations: 338.9 kB / 367 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1216, allocations: 116.6 kB / 367.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.1218, allocations: 171.3 kB / 367.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.1221, allocations: 221.8 kB / 367.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1221, allocations: 0 / 367.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006454/0.1228, allocations: 457.1 kB / 367.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-05/0.1229, allocations: 101 kB / 368 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1229, allocations: 4 kB / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.1229, allocations: 0 / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.1231, allocations: 43.91 kB / 368.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.1231, allocations: 8.094 kB / 368.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.1233, allocations: 43.73 kB / 368.1 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.1233, allocations: 8 kB / 368.1 MB, free: 3.699 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 ($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.0002058/0.1235, allocations: 245.8 kB / 368.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.1236, allocations: 27.81 kB / 368.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.019e-05/0.1236, allocations: 26.59 kB / 368.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1236, allocations: 0 / 368.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1237, allocations: 3.984 kB / 368.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1237, allocations: 0 / 368.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1249, allocations: 0.9551 MB / 369.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.125, allocations: 0 / 369.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.1251, allocations: 23.98 kB / 369.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1251, allocations: 0 / 369.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.1251, allocations: 8 kB / 369.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1251, allocations: 7.984 kB / 369.4 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1251, allocations: 3.953 kB / 369.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.126, allocations: 0.6166 MB / 370 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.1261, allocations: 100.8 kB / 370.1 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.1261, allocations: 15.98 kB / 370.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.1263, allocations: 23.98 kB / 370.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.1264, allocations: 31.91 kB / 370.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.1264, allocations: 12 kB / 370.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.569e-05/0.1265, allocations: 143.2 kB / 370.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.1266, allocations: 0 / 370.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.1269, allocations: 71.88 kB / 370.4 MB, free: 1.25 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 (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.0001782/0.1271, allocations: 136.9 kB / 370.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007546/0.1278, allocations: 0.5564 MB / 371.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1278, allocations: 0 / 371.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.1283, allocations: 402.9 kB / 371.5 MB, free: 96 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1742/0.3025, allocations: 127.4 kB / 371.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.3038, allocations: 0.6081 MB / 372.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.304, allocations: 0.7442 MB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.3042, allocations: 48.72 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.3043, allocations: 21.95 kB / 373.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of SimCode: time 1.133e-06/0.3043, allocations: 0 / 373.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01042/0.3147, allocations: 3.849 MB / 376.9 MB, free: 18.66 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches