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.001639/0.001639, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 55.47 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09846, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003576/0.1021, allocations: 2.381 MB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1034, allocations: 0.7439 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.798e-05/0.1035, allocations: 4 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.1036, allocations: 35.64 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.845e-05/0.1037, allocations: 51.5 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.1041, allocations: 95.75 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.1044, allocations: 279 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.1047, allocations: 107 kB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1049, allocations: 131.5 kB / 362.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1051, allocations: 111.6 kB / 362.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.1052, allocations: 24 kB / 362.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.787e-05/0.1052, allocations: 24 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.929e-05/0.1053, allocations: 59.77 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.1054, allocations: 119.5 kB / 363 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.1058, allocations: 290.9 kB / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1058, allocations: 0 / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1058, allocations: 0 / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1058, allocations: 0 / 363.3 MB, free: 8.875 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.001022/0.1068, allocations: 0.6678 MB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1069, allocations: 8.031 kB / 364 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.1071, allocations: 40.64 kB / 364 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.1074, allocations: 247.8 kB / 364.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.499e-05/0.1075, allocations: 50.05 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.1075, allocations: 24.38 kB / 364.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1081, allocations: 256.3 kB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1081, allocations: 3.938 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.1081, allocations: 8 kB / 364.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.994e-06/0.1082, allocations: 4 kB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004863/0.1086, allocations: 204.3 kB / 364.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.11, allocations: 0.7562 MB / 365.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.1106, allocations: 298.7 kB / 365.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004223/0.111, allocations: 230.6 kB / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.111, allocations: 4 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005082/0.1115, allocations: 316.2 kB / 366.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.1116, allocations: 0 / 366.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001127/0.1127, allocations: 0.563 MB / 367 MB, free: 4.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.1128, allocations: 207.9 kB / 367.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.113, allocations: 191.4 kB / 367.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.113, allocations: 45.69 kB / 367.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1131, allocations: 128.8 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.1132, allocations: 75.02 kB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.583e-05/0.1133, allocations: 69.95 kB / 367.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1135, allocations: 338.8 kB / 368 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.1137, allocations: 104.6 kB / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.114, allocations: 179.2 kB / 368.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005401/0.1145, allocations: 413.3 kB / 368.7 MB, free: 3.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1146, allocations: 0 / 368.7 MB, free: 3.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007205/0.1153, allocations: 449.3 kB / 369.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.873e-05/0.1154, allocations: 93.09 kB / 369.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.1154, allocations: 7.938 kB / 369.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1154, allocations: 0 / 369.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.1156, allocations: 39.91 kB / 369.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.1156, allocations: 4 kB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.1158, allocations: 43.67 kB / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.1159, allocations: 12.03 kB / 369.3 MB, free: 2.441 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.0002513/0.1161, allocations: 235.8 kB / 369.5 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.561e-05/0.1162, allocations: 23.81 kB / 369.6 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.1162, allocations: 26.58 kB / 369.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1163, allocations: 0 / 369.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1163, allocations: 0 / 369.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1163, allocations: 4 kB / 369.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1177, allocations: 0.9458 MB / 370.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1177, allocations: 0 / 370.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1178, allocations: 24.02 kB / 370.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.1178, allocations: 7.984 kB / 370.6 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.1179, allocations: 8 kB / 370.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1179, allocations: 0 / 370.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1179, allocations: 0 / 370.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008917/0.1188, allocations: 0.6125 MB / 371.2 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.037e-05/0.1189, allocations: 104.7 kB / 371.3 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.1189, allocations: 15.98 kB / 371.3 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.1191, allocations: 19.98 kB / 371.3 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.1193, allocations: 23.97 kB / 371.4 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.1193, allocations: 19.98 kB / 371.4 MB, free: 244 kB / 302.1 MB Notification: Performance of sorting global known variables: time 9.683e-05/0.1194, allocations: 132.4 kB / 371.5 MB, free: 112 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1194, allocations: 0 / 371.5 MB, free: 112 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.1198, allocations: 87.77 kB / 371.6 MB, free: 24 kB / 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.173/0.2928, allocations: 121.8 kB / 371.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.2944, allocations: 0.5368 MB / 372.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2945, allocations: 0 / 372.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.2952, allocations: 401.5 kB / 372.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.2963, allocations: 140.4 kB / 372.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.2978, allocations: 0.5153 MB / 373.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.2981, allocations: 0.7452 MB / 374 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002457/0.2984, allocations: 53.31 kB / 374.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.148e-05/0.2985, allocations: 20.72 kB / 374.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2985, allocations: 1.438 kB / 374.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01309/0.3116, allocations: 4.275 MB / 378.4 MB, free: 18.77 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 -s gbode -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/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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches