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.0009937/0.0009938, allocations: 182.3 kB / 18.04 MB, free: 3.781 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.519/1.519, allocations: 205.4 MB / 224.2 MB, free: 9.02 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.000901/0.000901, allocations: 82.42 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 15.98 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2641, allocations: 47.57 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.3764, allocations: 83.37 MB / 460.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.3768, allocations: 79.94 kB / 460.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07201/0.4489, allocations: 34.39 MB / 494.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.977e-06/0.4489, allocations: 3.984 kB / 494.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.429e-05/0.449, allocations: 23.94 kB / 494.9 MB, free: 10.71 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.001532/0.4505, allocations: 0.9796 MB / 495.9 MB, free: 9.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4505, allocations: 15.91 kB / 495.9 MB, free: 9.637 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.4507, allocations: 80 kB / 496 MB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006409/0.4514, allocations: 440 kB / 496.4 MB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/0.4515, allocations: 20.38 kB / 496.4 MB, free: 9.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.4516, allocations: 16.38 kB / 496.4 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.4522, allocations: 301.8 kB / 496.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4523, allocations: 4.188 kB / 496.7 MB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.476e-05/0.4523, allocations: 15.94 kB / 496.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.4523, allocations: 0 / 496.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004744/0.4528, allocations: 211.9 kB / 496.9 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.4545, allocations: 0.8746 MB / 497.8 MB, free: 7.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005008/0.455, allocations: 222.4 kB / 498 MB, free: 7.375 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.4553, allocations: 156.8 kB / 498.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.4553, allocations: 0 / 498.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005747/0.4559, allocations: 393.9 kB / 498.6 MB, free: 6.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.364e-06/0.4559, allocations: 0 / 498.6 MB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001495/0.4574, allocations: 0.7336 MB / 499.3 MB, free: 6.031 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.4576, allocations: 174.2 kB / 499.5 MB, free: 5.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.4591, allocations: 1.004 MB / 0.4887 GB, free: 4.809 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.4591, allocations: 33.7 kB / 0.4888 GB, free: 4.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.4593, allocations: 149.8 kB / 0.4889 GB, free: 4.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.734e-05/0.4594, allocations: 59.34 kB / 0.489 GB, free: 4.562 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.4594, allocations: 8 kB / 0.489 GB, free: 4.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4596, allocations: 334.8 kB / 0.4893 GB, free: 4.219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.4598, allocations: 124.5 kB / 0.4894 GB, free: 4.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.4602, allocations: 164.2 kB / 0.4896 GB, free: 3.922 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006147/0.4608, allocations: 477.7 kB / 0.49 GB, free: 3.391 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.4608, allocations: 4 kB / 0.49 GB, free: 3.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009611/0.4618, allocations: 0.578 MB / 0.4906 GB, free: 2.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.4619, allocations: 130.8 kB / 0.4907 GB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4619, allocations: 0 / 0.4907 GB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.4619, allocations: 4 kB / 0.4907 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.282e-05/0.462, allocations: 19.92 kB / 0.4908 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.462, allocations: 0 / 0.4908 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.4624, allocations: 43.89 kB / 0.4908 GB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.4625, allocations: 115.9 kB / 0.4909 GB, free: 2.445 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.0007103/0.4632, allocations: 0.5297 MB / 0.4914 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.4634, allocations: 79.06 kB / 0.4915 GB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.4637, allocations: 130.5 kB / 0.4916 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.4637, allocations: 3.938 kB / 0.4916 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.4637, allocations: 0 / 0.4916 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4637, allocations: 4 kB / 0.4916 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008592/0.4646, allocations: 0.6219 MB / 0.4922 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.4646, allocations: 4 kB / 0.4922 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.4646, allocations: 12 kB / 0.4923 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.4646, allocations: 0 / 0.4923 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.4647, allocations: 28.11 kB / 0.4923 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4647, allocations: 3.984 kB / 0.4923 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4647, allocations: 4 kB / 0.4923 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.4658, allocations: 0.71 MB / 0.493 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2361/0.7019, allocations: 492.2 kB / 0.4935 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.7022, allocations: 22.42 kB / 0.4935 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.7026, allocations: 26.22 kB / 0.4935 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.7029, allocations: 55.61 kB / 0.4936 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002508/0.7031, allocations: 119.2 kB / 0.4937 GB, free: 105.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001425/0.7046, allocations: 0.7331 MB / 0.4944 GB, free: 104.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7046, allocations: 0.6562 kB / 0.4944 GB, free: 104.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005337/0.7051, allocations: 85.12 kB / 0.4945 GB, free: 104.9 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.0002124/0.7053, allocations: 135.1 kB / 0.4946 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009777/0.7063, allocations: 0.659 MB / 0.4952 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7063, allocations: 0 / 0.4952 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005466/0.7069, allocations: 0.5266 MB / 0.4957 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008629/0.7078, allocations: 178.7 kB / 0.4959 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.7101, allocations: 1.494 MB / 0.4974 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.7107, allocations: 0.9655 MB / 0.4983 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004388/0.7112, allocations: 166.1 kB / 0.4985 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.7113, allocations: 72.19 kB / 0.4985 GB, free: 102.7 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7113, allocations: 4.312 kB / 0.4986 GB, free: 102.7 MB / 378.7 MB Notification: Performance of Templates: time 0.0106/0.7219, allocations: 6.764 MB / 0.5052 GB, free: 102.2 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/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_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches