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.001125/0.001125, allocations: 110.8 kB / 17.06 MB, free: 6.098 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.001263/0.001263, allocations: 198.9 kB / 18 MB, free: 5.172 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.575/1.575, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4577/0.4592, allocations: 49.42 MB / 400.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004019/0.4633, allocations: 2.368 MB / 403.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.4648, allocations: 0.6661 MB / 403.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.4649, allocations: 4 kB / 403.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.4651, allocations: 35.64 kB / 403.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.4653, allocations: 63.42 kB / 403.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.4656, allocations: 83.78 kB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.466, allocations: 267.1 kB / 404.2 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.4663, allocations: 115 kB / 404.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.4665, allocations: 115.6 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.4667, allocations: 119.5 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.4667, allocations: 20 kB / 404.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.89e-05/0.4668, allocations: 24 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.884e-05/0.4669, allocations: 55.81 kB / 404.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.467, allocations: 123.3 kB / 404.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.4674, allocations: 280.2 kB / 405 MB, free: 4.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.4674, allocations: 0 / 405 MB, free: 4.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4674, allocations: 0 / 405 MB, free: 4.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.4674, allocations: 0 / 405 MB, free: 4.574 MB / 318.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.001284/0.4687, allocations: 0.664 MB / 405.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4687, allocations: 11.97 kB / 405.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.424e-05/0.4688, allocations: 28.66 kB / 405.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003926/0.4692, allocations: 241.2 kB / 406 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.4693, allocations: 54.25 kB / 406 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.4694, allocations: 20.38 kB / 406 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.47, allocations: 260.3 kB / 406.3 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.47, allocations: 0 / 406.3 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.47, allocations: 4 kB / 406.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.4701, allocations: 4 kB / 406.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.4706, allocations: 208.2 kB / 406.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.472, allocations: 0.76 MB / 407.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.4728, allocations: 287.2 kB / 407.6 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004417/0.4732, allocations: 234.6 kB / 407.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.4732, allocations: 3.953 kB / 407.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005263/0.4738, allocations: 317.1 kB / 408.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.4738, allocations: 0 / 408.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001148/0.4749, allocations: 0.5669 MB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.4751, allocations: 211.9 kB / 408.9 MB, free: 464 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.4753, allocations: 175.1 kB / 409 MB, free: 280 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.4753, allocations: 45.69 kB / 409.1 MB, free: 228 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.403e-05/0.4754, allocations: 136.7 kB / 409.2 MB, free: 84 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.4755, allocations: 78.98 kB / 409.3 MB, free: 4 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.4756, allocations: 70.09 kB / 409.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4758, allocations: 334.8 kB / 409.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.476, allocations: 108.6 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002884/0.4763, allocations: 179.2 kB / 410 MB, free: 15.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.4769, allocations: 403.7 kB / 410.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4769, allocations: 0 / 410.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006906/0.4776, allocations: 449.3 kB / 410.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.355e-05/0.4777, allocations: 97.19 kB / 410.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.4777, allocations: 3.938 kB / 410.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.4777, allocations: 4 kB / 410.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4779, allocations: 43.92 kB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.4779, allocations: 3.984 kB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.4781, allocations: 35.69 kB / 411 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.4782, allocations: 15.98 kB / 411 MB, free: 14.16 MB / 334.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.0003397/0.4785, allocations: 244.8 kB / 411.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.4786, allocations: 19.81 kB / 411.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.981e-05/0.4786, allocations: 30.58 kB / 411.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.4786, allocations: 0 / 411.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.4787, allocations: 4 kB / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.4787, allocations: 0 / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.4801, allocations: 0.9277 MB / 412.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4801, allocations: 0 / 412.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.4803, allocations: 23.98 kB / 412.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.331e-06/0.4803, allocations: 7.938 kB / 412.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.4803, allocations: 19.95 kB / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4803, allocations: 0 / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4803, allocations: 0 / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009131/0.4812, allocations: 0.6087 MB / 412.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.563e-05/0.4813, allocations: 108.8 kB / 413 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.4814, allocations: 12 kB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.4816, allocations: 23.97 kB / 413 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.971e-05/0.4817, allocations: 19.98 kB / 413 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.4817, allocations: 11.98 kB / 413.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.4819, allocations: 131.2 kB / 413.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4819, allocations: 4 kB / 413.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000358/0.4822, allocations: 75.84 kB / 413.3 MB, free: 11.76 MB / 334.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.0001998/0.4824, allocations: 132.9 kB / 413.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008537/0.4833, allocations: 0.5413 MB / 413.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4833, allocations: 192 / 413.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005065/0.4838, allocations: 402.6 kB / 414.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007609/0.4846, allocations: 153.4 kB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.4857, allocations: 0.5249 MB / 415 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.4862, allocations: 0.7445 MB / 415.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.4863, allocations: 45.91 kB / 415.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.4864, allocations: 19.44 kB / 415.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4864, allocations: 0 / 415.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of Templates: time 0.008184/0.4946, allocations: 4.288 MB / 420.1 MB, free: 4.859 MB / 334.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