Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00199/0.00199, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.977/1.977, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.000949/0.0009487, allocations: 100.1 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003048, allocations: 12 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3227, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1249/0.4476, allocations: 83.33 MB / 459.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.448, allocations: 71.97 kB / 459.2 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06751/0.5155, allocations: 34.39 MB / 493.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.5156, allocations: 4 kB / 493.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.633e-05/0.5156, allocations: 19.94 kB / 493.6 MB, free: 10.89 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.001332/0.517, allocations: 0.9872 MB / 494.6 MB, free: 9.832 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.517, allocations: 12.03 kB / 494.6 MB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.5172, allocations: 79.06 kB / 494.7 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006649/0.5179, allocations: 407.5 kB / 495.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.183e-05/0.5179, allocations: 20 kB / 495.1 MB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.518, allocations: 16 kB / 495.1 MB, free: 9.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006454/0.5186, allocations: 309.2 kB / 495.4 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.5187, allocations: 4 kB / 495.4 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.652e-05/0.5187, allocations: 11.94 kB / 495.4 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.5187, allocations: 4 kB / 495.4 MB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004238/0.5192, allocations: 207.9 kB / 495.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.5206, allocations: 0.8747 MB / 496.5 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.5211, allocations: 214.5 kB / 496.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.5212, allocations: 3.938 kB / 496.7 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005674/0.5217, allocations: 392.4 kB / 497.1 MB, free: 7.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.297e-06/0.5217, allocations: 4 kB / 497.1 MB, free: 7.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001457/0.5232, allocations: 0.8765 MB / 498 MB, free: 6.215 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.5233, allocations: 174.2 kB / 498.2 MB, free: 6.008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.5246, allocations: 0.8898 MB / 499.1 MB, free: 5.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.5246, allocations: 33.7 kB / 499.1 MB, free: 5.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.5248, allocations: 145.8 kB / 499.2 MB, free: 4.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.822e-05/0.5249, allocations: 55.39 kB / 499.3 MB, free: 4.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.5249, allocations: 12 kB / 499.3 MB, free: 4.855 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5251, allocations: 338.9 kB / 499.6 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.5253, allocations: 124.5 kB / 499.8 MB, free: 4.395 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.5256, allocations: 164.2 kB / 499.9 MB, free: 4.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.5259, allocations: 222.7 kB / 0.4884 GB, free: 3.977 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5259, allocations: 4 kB / 0.4884 GB, free: 3.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009698/0.5269, allocations: 0.5624 MB / 0.489 GB, free: 3.379 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.5271, allocations: 134.8 kB / 0.4891 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.5271, allocations: 0 / 0.4891 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.5271, allocations: 8.031 kB / 0.4891 GB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.917e-05/0.5272, allocations: 19.92 kB / 0.4891 GB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.5272, allocations: 3.984 kB / 0.4891 GB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.5275, allocations: 39.81 kB / 0.4892 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.5277, allocations: 119.9 kB / 0.4893 GB, free: 3.035 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.0006576/0.5283, allocations: 0.5298 MB / 0.4898 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.442e-05/0.5285, allocations: 75.16 kB / 0.4899 GB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.5287, allocations: 130.4 kB / 0.49 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5287, allocations: 0 / 0.49 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.5287, allocations: 4 kB / 0.49 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.5287, allocations: 7.984 kB / 0.49 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008289/0.5295, allocations: 0.6257 MB / 0.4906 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.5295, allocations: 0 / 0.4906 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.5296, allocations: 15.98 kB / 0.4906 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.5296, allocations: 0 / 0.4906 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.5297, allocations: 27.98 kB / 0.4907 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5297, allocations: 0 / 0.4907 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5297, allocations: 0 / 0.4907 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.5309, allocations: 0.6906 MB / 0.4913 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008037/0.5317, allocations: 0.4918 MB / 0.4918 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.5319, allocations: 24 kB / 0.4918 GB, free: 276 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.5321, allocations: 27.97 kB / 0.4919 GB, free: 248 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.5323, allocations: 56.06 kB / 0.4919 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.5325, allocations: 115.9 kB / 0.492 GB, free: 76 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.2569/0.7894, allocations: 0.7328 MB / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.7894, allocations: 0 / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008435/0.7903, allocations: 87.12 kB / 0.4928 GB, free: 105 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.0002755/0.7906, allocations: 130.8 kB / 0.4929 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.7917, allocations: 0.6569 MB / 0.4936 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7917, allocations: 0 / 0.4936 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005814/0.7923, allocations: 0.5261 MB / 0.4941 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007179/0.793, allocations: 179.6 kB / 0.4943 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.7952, allocations: 1.505 MB / 0.4957 GB, free: 103.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.7957, allocations: 0.9748 MB / 0.4967 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003892/0.7961, allocations: 165.8 kB / 0.4969 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.7963, allocations: 75.61 kB / 0.4969 GB, free: 102.8 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7963, allocations: 0 / 0.4969 GB, free: 102.8 MB / 378.7 MB Notification: Performance of Templates: time 0.01005/0.8064, allocations: 6.691 MB / 0.5035 GB, free: 102.3 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches