Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001459, allocations: 185.5 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001123, allocations: 92.41 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003947, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3332, allocations: 47.58 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4587, allocations: 78.17 MB / 452.7 MB, free: 2.605 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.4591, allocations: 71.97 kB / 452.8 MB, free: 2.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03029/0.4894, allocations: 7.092 MB / 459.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4895, allocations: 4 kB / 459.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.4895, allocations: 4 kB / 459.9 MB, free: 11.43 MB / 346.7 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.001233/0.4908, allocations: 0.6097 MB / 460.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.4908, allocations: 12.03 kB / 460.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.491, allocations: 27.72 kB / 460.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.4916, allocations: 255.3 kB / 460.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.4917, allocations: 49.7 kB / 460.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.4918, allocations: 16 kB / 460.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009097/0.4927, allocations: 264.9 kB / 461.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.4927, allocations: 3.984 kB / 461.1 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.4928, allocations: 8 kB / 461.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.4928, allocations: 4 kB / 461.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008666/0.4937, allocations: 216.3 kB / 461.3 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.4958, allocations: 0.7651 MB / 462.1 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.4969, allocations: 303.4 kB / 462.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.4969, allocations: 11.98 kB / 462.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000862/0.4978, allocations: 325.9 kB / 462.7 MB, free: 8.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 5.571e-06/0.4979, allocations: 0 / 462.7 MB, free: 8.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.002155/0.5, allocations: 0.7615 MB / 463.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.5002, allocations: 200.1 kB / 463.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.5005, allocations: 174.2 kB / 463.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.592e-05/0.5006, allocations: 37.69 kB / 463.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.5007, allocations: 195.2 kB / 464.1 MB, free: 6.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.5008, allocations: 79 kB / 464.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.5009, allocations: 8 kB / 464.1 MB, free: 6.812 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.501, allocations: 326.8 kB / 464.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/0.5015, allocations: 112.6 kB / 464.6 MB, free: 6.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.502, allocations: 175.3 kB / 464.7 MB, free: 6.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005295/0.5025, allocations: 233.3 kB / 465 MB, free: 5.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5025, allocations: 0 / 465 MB, free: 5.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001178/0.5037, allocations: 451 kB / 465.4 MB, free: 5.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/0.5039, allocations: 93.09 kB / 465.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.5039, allocations: 0 / 465.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.5039, allocations: 4 kB / 465.5 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.5042, allocations: 43.91 kB / 465.5 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.5043, allocations: 7.984 kB / 465.6 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.5046, allocations: 35.86 kB / 465.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.5047, allocations: 15.95 kB / 465.6 MB, free: 5.254 MB / 346.7 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,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$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.0003626/0.5051, allocations: 235.8 kB / 465.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/0.5051, allocations: 23.81 kB / 465.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.875e-05/0.5052, allocations: 22.66 kB / 465.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.5052, allocations: 0 / 465.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.5053, allocations: 4 kB / 465.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.5053, allocations: 3.984 kB / 465.9 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.5074, allocations: 0.9005 MB / 466.8 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.5074, allocations: 3.984 kB / 466.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.5077, allocations: 27.92 kB / 466.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.437e-06/0.5077, allocations: 4 kB / 466.8 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.5077, allocations: 12 kB / 466.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.5078, allocations: 0 / 466.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5078, allocations: 0 / 466.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.5094, allocations: 0.6273 MB / 467.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.5095, allocations: 96.81 kB / 467.6 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-05/0.5096, allocations: 12 kB / 467.6 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.51, allocations: 36.16 kB / 467.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.5102, allocations: 19.97 kB / 467.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.5102, allocations: 19.92 kB / 467.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.5104, allocations: 128.3 kB / 467.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.839e-06/0.5104, allocations: 0 / 467.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005203/0.511, allocations: 83.83 kB / 467.9 MB, free: 2.871 MB / 346.7 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.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,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.0002493/0.5112, allocations: 136.8 kB / 468 MB, free: 2.727 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.5127, allocations: 0.5527 MB / 468.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5128, allocations: 0 / 468.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.5137, allocations: 406.6 kB / 468.9 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.5148, allocations: 129.3 kB / 469.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.5164, allocations: 0.6257 MB / 469.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.5169, allocations: 0.7526 MB / 470.4 MB, free: 160 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.517, allocations: 19.44 kB / 470.5 MB, free: 140 kB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.517, allocations: 0 / 470.5 MB, free: 140 kB / 346.7 MB Notification: Performance of Templates: time 0.008338/0.5254, allocations: 3.027 MB / 473.5 MB, free: 13.12 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches