Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.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.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001521/0.001521, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001163/0.001162, allocations: 96.31 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003849, allocations: 8 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.344, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1339/0.4779, allocations: 83.33 MB / 457.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4783, allocations: 71.97 kB / 457.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1214/0.5997, allocations: 34.39 MB / 492.3 MB, free: 11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5998, allocations: 0 / 492.3 MB, free: 11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.698e-05/0.5999, allocations: 15.94 kB / 492.3 MB, free: 10.99 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001697/0.6016, allocations: 0.9872 MB / 493.3 MB, free: 9.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.6016, allocations: 8.031 kB / 493.3 MB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.6019, allocations: 79.06 kB / 493.4 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.6027, allocations: 411.5 kB / 493.8 MB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.76e-05/0.6028, allocations: 16 kB / 493.8 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.715e-05/0.6029, allocations: 20 kB / 493.9 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009808/0.6039, allocations: 297.2 kB / 494.1 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.604, allocations: 0 / 494.1 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.205e-05/0.604, allocations: 15.98 kB / 494.2 MB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.6041, allocations: 11.92 kB / 494.2 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/0.6048, allocations: 207.8 kB / 494.4 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.607, allocations: 0.8825 MB / 495.3 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007682/0.6078, allocations: 218.5 kB / 495.5 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-05/0.6078, allocations: 3.938 kB / 495.5 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000824/0.6087, allocations: 388.4 kB / 495.9 MB, free: 7.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 4.879e-06/0.6087, allocations: 0 / 495.9 MB, free: 7.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.002344/0.611, allocations: 0.8804 MB / 496.7 MB, free: 6.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.6112, allocations: 174.2 kB / 496.9 MB, free: 6.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.6132, allocations: 0.8898 MB / 497.8 MB, free: 5.199 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.6133, allocations: 37.7 kB / 497.8 MB, free: 5.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.6135, allocations: 204.3 kB / 498 MB, free: 4.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.6136, allocations: 51.36 kB / 498.1 MB, free: 4.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.6137, allocations: 8 kB / 498.1 MB, free: 4.895 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.6138, allocations: 323 kB / 498.4 MB, free: 4.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/0.6143, allocations: 120.5 kB / 498.5 MB, free: 4.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.6148, allocations: 168.2 kB / 498.7 MB, free: 4.273 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.6154, allocations: 226.5 kB / 498.9 MB, free: 4.031 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.6154, allocations: 0 / 498.9 MB, free: 4.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001559/0.6169, allocations: 0.5547 MB / 499.5 MB, free: 3.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.6171, allocations: 130.8 kB / 499.6 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.6171, allocations: 4 kB / 499.6 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.6171, allocations: 0 / 499.6 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.6173, allocations: 20 kB / 499.6 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.6173, allocations: 0 / 499.6 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/0.6178, allocations: 43.81 kB / 499.7 MB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000217/0.6181, allocations: 115.9 kB / 499.8 MB, free: 3.113 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.001063/0.6191, allocations: 0.5336 MB / 0.4886 GB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.6193, allocations: 75.16 kB / 0.4886 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003288/0.6197, allocations: 130.4 kB / 0.4888 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.6197, allocations: 4.031 kB / 0.4888 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.6197, allocations: 4 kB / 0.4888 GB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.6197, allocations: 0 / 0.4888 GB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.6208, allocations: 0.6258 MB / 0.4894 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6208, allocations: 0 / 0.4894 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.403e-05/0.6209, allocations: 8 kB / 0.4894 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.621, allocations: 0 / 0.4894 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.621, allocations: 27.98 kB / 0.4894 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.6211, allocations: 4.094 kB / 0.4894 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6211, allocations: 4.062 kB / 0.4894 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.623, allocations: 0.7022 MB / 0.4901 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.6242, allocations: 0.4957 MB / 0.4906 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.6244, allocations: 20 kB / 0.4906 GB, free: 344 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004202/0.6248, allocations: 23.98 kB / 0.4906 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.6251, allocations: 63.92 kB / 0.4907 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/0.6253, allocations: 111.9 kB / 0.4908 GB, free: 144 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.278/0.9033, allocations: 0.7254 MB / 0.4915 GB, free: 104.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.9033, allocations: 2.156 kB / 0.4915 GB, free: 104.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007579/0.9041, allocations: 84.41 kB / 0.4916 GB, free: 104.7 MB / 378.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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0002616/0.9044, allocations: 134.3 kB / 0.4917 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.906, allocations: 0.6552 MB / 0.4924 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.906, allocations: 0.6562 kB / 0.4924 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008567/0.9069, allocations: 0.5258 MB / 0.4929 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.9081, allocations: 167.4 kB / 0.493 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.9117, allocations: 1.584 MB / 0.4946 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007599/0.9125, allocations: 0.9809 MB / 0.4955 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004032/0.913, allocations: 90.98 kB / 0.4956 GB, free: 102.5 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.913, allocations: 0.8438 kB / 0.4956 GB, free: 102.5 MB / 378.7 MB Notification: Performance of Templates: time 0.0123/0.9253, allocations: 5.3 MB / 0.5008 GB, free: 102.2 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches