Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001581/0.001581, allocations: 203.1 kB / 8.541 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008658/0.0008659, allocations: 91.3 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.436e-06/8.476e-06, allocations: 0 / 343.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.09217, allocations: 51.48 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.26/0.3522, allocations: 84.23 MB / 478.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.3524, allocations: 69.73 kB / 478.9 MB, free: 8.789 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06188/0.4143, allocations: 34.24 MB / 0.5011 GB, free: 12.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.4144, allocations: 12 kB / 0.5011 GB, free: 12.5 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.001031/0.4154, allocations: 0.8703 MB / 0.502 GB, free: 11.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4155, allocations: 8.031 kB / 0.502 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.4157, allocations: 79.06 kB / 0.5021 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.4164, allocations: 407.6 kB / 0.5024 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.4164, allocations: 16 kB / 0.5025 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.4165, allocations: 15.91 kB / 0.5025 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003887/0.4169, allocations: 199.9 kB / 0.5027 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004664/0.4174, allocations: 273.5 kB / 0.5029 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.4174, allocations: 0 / 0.5029 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.795e-05/0.4174, allocations: 11.98 kB / 0.5029 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4174, allocations: 0 / 0.5029 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.4188, allocations: 0.8535 MB / 0.5038 GB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.4192, allocations: 198.5 kB / 0.504 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.4194, allocations: 148.8 kB / 0.5041 GB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.4195, allocations: 4 kB / 0.5041 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.4198, allocations: 342.8 kB / 0.5044 GB, free: 8.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.4198, allocations: 0 / 0.5044 GB, free: 8.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006174/0.4205, allocations: 358.2 kB / 0.5048 GB, free: 8.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/0.4205, allocations: 174.2 kB / 0.5049 GB, free: 8.363 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.4216, allocations: 0.8393 MB / 0.5058 GB, free: 7.516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.4217, allocations: 33.7 kB / 0.5058 GB, free: 7.477 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.915e-05/0.4218, allocations: 129.8 kB / 0.5059 GB, free: 7.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.492e-05/0.4218, allocations: 56.89 kB / 0.506 GB, free: 7.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/0.4219, allocations: 4 kB / 0.506 GB, free: 7.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.422, allocations: 338.8 kB / 0.5063 GB, free: 6.949 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.4222, allocations: 112 kB / 0.5064 GB, free: 6.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.4224, allocations: 142.5 kB / 0.5065 GB, free: 6.691 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.4226, allocations: 95.95 kB / 0.5066 GB, free: 6.598 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.4226, allocations: 3.906 kB / 0.5066 GB, free: 6.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005646/0.4232, allocations: 336 kB / 0.507 GB, free: 6.262 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.4232, allocations: 4 kB / 0.507 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4232, allocations: 0 / 0.507 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.4232, allocations: 4 kB / 0.507 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.063e-05/0.4233, allocations: 15.92 kB / 0.507 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.4233, allocations: 4 kB / 0.507 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.4236, allocations: 27.88 kB / 0.507 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.4237, allocations: 115.9 kB / 0.5071 GB, free: 6.094 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.0002153/0.424, allocations: 266.3 kB / 0.5074 GB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.344e-05/0.4241, allocations: 79.09 kB / 0.5075 GB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.4243, allocations: 129.6 kB / 0.5076 GB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4243, allocations: 7.984 kB / 0.5076 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4243, allocations: 3.906 kB / 0.5076 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4243, allocations: 7.984 kB / 0.5076 GB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006683/0.425, allocations: 0.5872 MB / 0.5082 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.425, allocations: 0 / 0.5082 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.231e-05/0.4251, allocations: 16.11 kB / 0.5082 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4251, allocations: 0 / 0.5082 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.625e-05/0.4251, allocations: 27.89 kB / 0.5082 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4251, allocations: 0 / 0.5082 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4252, allocations: 0 / 0.5082 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006274/0.4258, allocations: 421.1 kB / 0.5086 GB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007089/0.4265, allocations: 0.5114 MB / 0.5091 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.4266, allocations: 23.91 kB / 0.5091 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.4269, allocations: 19.98 kB / 0.5092 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.427, allocations: 51.94 kB / 0.5092 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.4272, allocations: 119.8 kB / 0.5093 GB, free: 3.738 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008328/0.428, allocations: 0.6861 MB / 0.51 GB, free: 3.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003391/0.4284, allocations: 72 kB / 0.5101 GB, free: 2.984 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.0001708/0.4285, allocations: 134.8 kB / 0.5102 GB, free: 2.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000626/0.4292, allocations: 430.5 kB / 0.5106 GB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4292, allocations: 0 / 0.5106 GB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.4296, allocations: 422.7 kB / 0.511 GB, free: 1.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.4303, allocations: 161.7 kB / 0.5112 GB, free: 1.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.4321, allocations: 1.061 MB / 0.5122 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009753/0.4331, allocations: 1.141 MB / 0.5133 GB, free: 15.54 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4331, allocations: 0.8438 kB / 0.5133 GB, free: 15.54 MB / 394.7 MB Notification: Performance of Templates: time 0.01091/0.444, allocations: 7.291 MB / 0.5204 GB, free: 8.258 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches