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.0007326/0.0007326, allocations: 90.02 kB / 17.31 MB, free: 6.027 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.0007878/0.0007879, allocations: 175.9 kB / 18.21 MB, free: 5.41 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.267/1.267, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002273, allocations: 17.28 kB / 302.1 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07811/0.07835, allocations: 50.41 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002251/0.08064, allocations: 2.051 MB / 354.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009759/0.08163, allocations: 0.6624 MB / 355.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.093e-05/0.08172, allocations: 7.938 kB / 355.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.08183, allocations: 15.84 kB / 355.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.08194, allocations: 47.62 kB / 355.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.0822, allocations: 79.8 kB / 355.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.08245, allocations: 247.1 kB / 355.6 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.08265, allocations: 98.92 kB / 355.7 MB, free: 272 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.08282, allocations: 95.62 kB / 355.8 MB, free: 176 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.08296, allocations: 95.53 kB / 355.9 MB, free: 80 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.083, allocations: 12 kB / 355.9 MB, free: 68 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.867e-05/0.08304, allocations: 12 kB / 355.9 MB, free: 56 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.964e-05/0.0831, allocations: 43.78 kB / 356 MB, free: 12 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.08324, allocations: 133.2 kB / 356.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.08344, allocations: 191.6 kB / 356.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.08345, allocations: 4 kB / 356.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.08346, allocations: 0 / 356.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.08347, allocations: 0 / 356.3 MB, free: 15.68 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.0008562/0.08433, allocations: 0.6405 MB / 356.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.08437, allocations: 11.97 kB / 356.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.368e-05/0.08443, allocations: 28.66 kB / 357 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.08468, allocations: 229.6 kB / 357.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-05/0.08476, allocations: 50.2 kB / 357.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.08481, allocations: 24.38 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.08539, allocations: 264.3 kB / 357.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.08541, allocations: 0 / 357.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.08544, allocations: 8 kB / 357.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.08545, allocations: 4 kB / 357.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.08597, allocations: 220.1 kB / 357.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.08722, allocations: 0.7719 MB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.08782, allocations: 311.2 kB / 358.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004331/0.08827, allocations: 231.9 kB / 359 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.0883, allocations: 4 kB / 359 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005018/0.08881, allocations: 320.3 kB / 359.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.08883, allocations: 0 / 359.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001182/0.09001, allocations: 0.6064 MB / 360 MB, free: 11.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.09013, allocations: 199.9 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.09028, allocations: 174.4 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.09033, allocations: 41.69 kB / 360.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.09041, allocations: 128.7 kB / 360.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.549e-05/0.09048, allocations: 83.02 kB / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.09055, allocations: 49.69 kB / 360.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.09065, allocations: 330.8 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.09091, allocations: 112.6 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.0912, allocations: 175.3 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005569/0.09176, allocations: 429.4 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.09178, allocations: 0 / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007256/0.09251, allocations: 459.4 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.09258, allocations: 97.09 kB / 362.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.09259, allocations: 3.938 kB / 362.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.09261, allocations: 4 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.0928, allocations: 44.02 kB / 362.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.09281, allocations: 4 kB / 362.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.093, allocations: 35.73 kB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.09303, allocations: 8 kB / 362.3 MB, free: 9.234 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.0002166/0.09326, allocations: 245.6 kB / 362.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.09331, allocations: 23.72 kB / 362.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.317e-05/0.09337, allocations: 30.58 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.09338, allocations: 4 kB / 362.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.09338, allocations: 0 / 362.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.09339, allocations: 4 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.09473, allocations: 0.9473 MB / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.09474, allocations: 0 / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.09486, allocations: 19.98 kB / 363.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.09488, allocations: 7.984 kB / 363.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.09491, allocations: 11.98 kB / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.09491, allocations: 0 / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.09492, allocations: 0 / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009253/0.09585, allocations: 0.6359 MB / 364.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-05/0.09593, allocations: 96.84 kB / 364.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.703e-05/0.09599, allocations: 16 kB / 364.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.09623, allocations: 23.98 kB / 364.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.0963, allocations: 20.14 kB / 364.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.09634, allocations: 19.98 kB / 364.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001002/0.09644, allocations: 135.2 kB / 364.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09645, allocations: 0 / 364.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.09679, allocations: 79.84 kB / 364.6 MB, free: 6.781 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.0001404/0.09693, allocations: 132.9 kB / 364.7 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000809/0.09775, allocations: 0.5565 MB / 365.3 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.09776, allocations: 0.75 kB / 365.3 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.09828, allocations: 413.4 kB / 365.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00073/0.09903, allocations: 141 kB / 365.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009171/0.09996, allocations: 0.6462 MB / 366.5 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.1002, allocations: 0.7448 MB / 367.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.497e-05/0.1003, allocations: 23.44 kB / 367.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1003, allocations: 0 / 367.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of Templates: time 0.004632/0.1049, allocations: 3.049 MB / 370.3 MB, free: 0.9883 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/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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches