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.001473/0.001473, allocations: 181.4 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.753/3.753, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001244/0.001244, allocations: 103.3 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005884/0.0005885, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7634/0.764, allocations: 47.58 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2269/0.9911, allocations: 83.37 MB / 459.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005782/0.9918, allocations: 75.95 kB / 459.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1389/1.131, allocations: 34.39 MB / 493.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.869e-06/1.131, allocations: 0 / 493.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.957e-05/1.131, allocations: 19.94 kB / 493.6 MB, free: 10.8 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.002358/1.133, allocations: 0.9796 MB / 494.6 MB, free: 9.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.897e-05/1.133, allocations: 11.97 kB / 494.6 MB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002421/1.134, allocations: 84 kB / 494.7 MB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/1.135, allocations: 432.1 kB / 495.1 MB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.559e-05/1.135, allocations: 20.38 kB / 495.1 MB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.469e-05/1.135, allocations: 16.38 kB / 495.1 MB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/1.136, allocations: 305.8 kB / 495.4 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/1.136, allocations: 192 / 495.4 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/1.136, allocations: 11.94 kB / 495.4 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/1.136, allocations: 7.984 kB / 495.4 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004896/1.141, allocations: 211.9 kB / 495.6 MB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003548/1.145, allocations: 0.8785 MB / 496.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009581/1.146, allocations: 226.4 kB / 496.7 MB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006234/1.147, allocations: 156.8 kB / 496.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/1.147, allocations: 0 / 496.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/1.148, allocations: 388.4 kB / 497.3 MB, free: 6.887 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 4.869e-06/1.148, allocations: 0 / 497.3 MB, free: 6.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.002875/1.151, allocations: 0.7336 MB / 498 MB, free: 6.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002922/1.151, allocations: 174.2 kB / 498.2 MB, free: 5.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007739/1.159, allocations: 1.004 MB / 499.2 MB, free: 4.898 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/1.159, allocations: 29.7 kB / 499.2 MB, free: 4.863 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/1.16, allocations: 149.8 kB / 499.4 MB, free: 4.715 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/1.16, allocations: 59.33 kB / 499.4 MB, free: 4.656 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.742e-05/1.16, allocations: 8 kB / 499.4 MB, free: 4.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003479/1.16, allocations: 334.8 kB / 499.7 MB, free: 4.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006326/1.161, allocations: 124.5 kB / 499.9 MB, free: 4.191 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006123/1.162, allocations: 168.3 kB / 0.4883 GB, free: 4.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/1.163, allocations: 473.7 kB / 0.4888 GB, free: 3.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/1.163, allocations: 0 / 0.4888 GB, free: 3.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001897/1.165, allocations: 0.5858 MB / 0.4893 GB, free: 2.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002673/1.165, allocations: 134.8 kB / 0.4895 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/1.165, allocations: 128 / 0.4895 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.715e-05/1.165, allocations: 8 kB / 0.4895 GB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.169, allocations: 15.94 kB / 0.4895 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/1.169, allocations: 0 / 0.4895 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007728/1.17, allocations: 43.81 kB / 0.4895 GB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002928/1.17, allocations: 115.9 kB / 0.4896 GB, free: 2.531 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.001825/1.172, allocations: 0.5337 MB / 0.4902 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/1.173, allocations: 83.09 kB / 0.4902 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008989/1.174, allocations: 130.4 kB / 0.4904 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/1.174, allocations: 0 / 0.4904 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/1.174, allocations: 0 / 0.4904 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.174, allocations: 4 kB / 0.4904 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/1.177, allocations: 0.6258 MB / 0.491 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.177, allocations: 4 kB / 0.491 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/1.177, allocations: 8 kB / 0.491 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/1.177, allocations: 0 / 0.491 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/1.177, allocations: 27.98 kB / 0.491 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/1.181, allocations: 0 / 0.491 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/1.181, allocations: 0 / 0.491 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002722/1.184, allocations: 0.71 MB / 0.4917 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.5435/1.728, allocations: 499.8 kB / 0.4922 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/1.728, allocations: 20.94 kB / 0.4922 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005532/1.729, allocations: 27.59 kB / 0.4922 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004637/1.729, allocations: 53.89 kB / 0.4923 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005599/1.73, allocations: 118 kB / 0.4924 GB, free: 105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003629/1.733, allocations: 0.7307 MB / 0.4931 GB, free: 104.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.733, allocations: 0 / 0.4931 GB, free: 104.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001667/1.735, allocations: 84.72 kB / 0.4932 GB, free: 104.8 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.0005311/1.736, allocations: 136.5 kB / 0.4933 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002222/1.738, allocations: 0.6525 MB / 0.494 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.738, allocations: 0 / 0.494 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/1.739, allocations: 0.5322 MB / 0.4945 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/1.741, allocations: 179.5 kB / 0.4946 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005794/1.747, allocations: 1.572 MB / 0.4962 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/1.748, allocations: 0.9738 MB / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006373/1.749, allocations: 87.38 kB / 0.4972 GB, free: 102.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.124e-06/1.749, allocations: 0 / 0.4972 GB, free: 102.6 MB / 378.7 MB Notification: Performance of Templates: time 0.0246/1.773, allocations: 5.393 MB / 0.5025 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