Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009686/0.0009687, allocations: 184.5 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009228, allocations: 95.41 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.759e-06/4.779e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1801, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08242/0.2625, allocations: 83.41 MB / 470.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.2628, allocations: 75.91 kB / 470.4 MB, free: 3.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06611/0.3289, allocations: 34.18 MB / 0.4927 GB, free: 1.215 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.059e-05/0.3289, allocations: 8.562 kB / 0.4928 GB, free: 1.207 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.0008191/0.3298, allocations: 0.8739 MB / 0.4936 GB, free: 268 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3298, allocations: 8.031 kB / 0.4936 GB, free: 260 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3299, allocations: 83.06 kB / 0.4937 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1024/0.4323, allocations: 414.7 kB / 0.4941 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.4324, allocations: 7.062 kB / 0.4941 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.4325, allocations: 21.53 kB / 0.4941 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003478/0.4328, allocations: 193 kB / 0.4943 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.4332, allocations: 276 kB / 0.4946 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.4332, allocations: 1.969 kB / 0.4946 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.4333, allocations: 7.25 kB / 0.4946 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.4333, allocations: 2.906 kB / 0.4946 GB, free: 134.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.4344, allocations: 0.8506 MB / 0.4954 GB, free: 133.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.4347, allocations: 205.7 kB / 0.4956 GB, free: 133.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.4349, allocations: 146.6 kB / 0.4957 GB, free: 133.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.4349, allocations: 0 / 0.4957 GB, free: 133.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.4353, allocations: 343.2 kB / 0.4961 GB, free: 133.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.472e-06/0.4353, allocations: 0 / 0.4961 GB, free: 133.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005271/0.4358, allocations: 363 kB / 0.4964 GB, free: 133.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.4359, allocations: 179.6 kB / 0.4966 GB, free: 133.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008396/0.4367, allocations: 0.8401 MB / 0.4974 GB, free: 133.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.4367, allocations: 35.05 kB / 0.4974 GB, free: 133.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.4368, allocations: 124 kB / 0.4976 GB, free: 133.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.4369, allocations: 58.8 kB / 0.4976 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.081e-05/0.4369, allocations: 3.625 kB / 0.4976 GB, free: 133.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.773e-05/0.4369, allocations: 342 kB / 0.4979 GB, free: 132.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.4371, allocations: 113.4 kB / 0.4981 GB, free: 132.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.4373, allocations: 140.2 kB / 0.4982 GB, free: 132.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.4374, allocations: 91.77 kB / 0.4983 GB, free: 132.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4375, allocations: 3.625 kB / 0.4983 GB, free: 132.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004571/0.4379, allocations: 333.2 kB / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.4379, allocations: 3.562 kB / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4379, allocations: 3.938 kB / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.438, allocations: 10.72 kB / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.685e-05/0.438, allocations: 20.38 kB / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.4381, allocations: 0 / 0.4986 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.4383, allocations: 31.42 kB / 0.4987 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-05/0.4384, allocations: 112.1 kB / 0.4988 GB, free: 132.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (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,$PRE.Adder.XOR.G2.y,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,$PRE.Adder.AND.G2.y,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 () * 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.0001529/0.4386, allocations: 272 kB / 0.499 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/0.4387, allocations: 78.47 kB / 0.4991 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.4388, allocations: 125.8 kB / 0.4992 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4389, allocations: 6.828 kB / 0.4992 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4389, allocations: 0 / 0.4992 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4389, allocations: 0 / 0.4992 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005265/0.4394, allocations: 0.5868 MB / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4394, allocations: 3.969 kB / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.4395, allocations: 14.73 kB / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.4395, allocations: 0 / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.4395, allocations: 25.39 kB / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.4395, allocations: 0 / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4395, allocations: 3.25 kB / 0.4998 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005045/0.44, allocations: 428.5 kB / 0.5003 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005499/0.4406, allocations: 0.5019 MB / 0.5007 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.4407, allocations: 22.69 kB / 0.5008 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.441, allocations: 24.11 kB / 0.5008 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.4411, allocations: 50.89 kB / 0.5008 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.075e-05/0.4412, allocations: 118.8 kB / 0.501 GB, free: 131.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006729/0.4419, allocations: 0.6859 MB / 0.5016 GB, free: 131.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.4422, allocations: 78.25 kB / 0.5017 GB, free: 131.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) * 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.0001336/0.4423, allocations: 142.4 kB / 0.5018 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004744/0.4428, allocations: 420.1 kB / 0.5022 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.4428, allocations: 6.406 kB / 0.5022 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.4432, allocations: 419 kB / 0.5026 GB, free: 131.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.4438, allocations: 158.2 kB / 0.5028 GB, free: 131.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.4453, allocations: 1.066 MB / 0.5038 GB, free: 130.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008331/0.4462, allocations: 1.142 MB / 0.5049 GB, free: 130.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4462, allocations: 1.312 kB / 0.5049 GB, free: 130.1 MB / 378.7 MB Notification: Performance of Templates: time 0.009133/0.4553, allocations: 7.276 MB / 0.5121 GB, free: 129.6 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches