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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008204/0.0008204, allocations: 99.38 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.317e-05/1.32e-05, allocations: 4 kB / 343.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.08895, allocations: 51.47 MB / 395.2 MB, free: 4.742 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2859/0.3749, allocations: 84.28 MB / 479.4 MB, free: 8.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.3751, allocations: 76.42 kB / 479.5 MB, free: 8.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05939/0.4345, allocations: 34.87 MB / 0.5023 GB, free: 11.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4346, allocations: 0 / 0.5023 GB, free: 11.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.4346, allocations: 12 kB / 0.5023 GB, free: 11.48 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.0007987/0.4354, allocations: 0.8776 MB / 0.5032 GB, free: 10.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.4354, allocations: 8.031 kB / 0.5032 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4356, allocations: 79.06 kB / 0.5033 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.436, allocations: 407.5 kB / 0.5037 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.4361, allocations: 8 kB / 0.5037 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.4361, allocations: 19.98 kB / 0.5037 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003287/0.4365, allocations: 193.8 kB / 0.5039 GB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.4369, allocations: 265.5 kB / 0.5041 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.4369, allocations: 4 kB / 0.5041 GB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.437, allocations: 8 kB / 0.5041 GB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.437, allocations: 4 kB / 0.5042 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.4381, allocations: 0.8403 MB / 0.505 GB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.4384, allocations: 198.5 kB / 0.5052 GB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.4386, allocations: 144.8 kB / 0.5053 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.4387, allocations: 3.984 kB / 0.5053 GB, free: 8.297 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003901/0.4391, allocations: 377.9 kB / 0.5057 GB, free: 7.891 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4391, allocations: 0 / 0.5057 GB, free: 7.891 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007218/0.4398, allocations: 462 kB / 0.5061 GB, free: 7.434 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.4399, allocations: 182.1 kB / 0.5063 GB, free: 7.219 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000969/0.4409, allocations: 0.8354 MB / 0.5071 GB, free: 6.375 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.4409, allocations: 37.7 kB / 0.5071 GB, free: 6.332 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.288e-05/0.441, allocations: 149.8 kB / 0.5073 GB, free: 6.184 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/0.4411, allocations: 55.3 kB / 0.5073 GB, free: 6.129 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.43e-05/0.4411, allocations: 8 kB / 0.5073 GB, free: 6.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4413, allocations: 340.8 kB / 0.5077 GB, free: 5.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.4414, allocations: 116 kB / 0.5078 GB, free: 5.668 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.4417, allocations: 138.5 kB / 0.5079 GB, free: 5.523 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.4418, allocations: 91.95 kB / 0.508 GB, free: 5.434 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4418, allocations: 3.938 kB / 0.508 GB, free: 5.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006373/0.4425, allocations: 425.2 kB / 0.5084 GB, free: 5.004 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.077e-05/0.4426, allocations: 134.8 kB / 0.5085 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.4426, allocations: 4 kB / 0.5085 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.4426, allocations: 4 kB / 0.5085 GB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.547e-05/0.4427, allocations: 15.92 kB / 0.5085 GB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4427, allocations: 4 kB / 0.5086 GB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.4429, allocations: 27.97 kB / 0.5086 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.4431, allocations: 111.9 kB / 0.5087 GB, free: 4.684 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.0002115/0.4433, allocations: 277.9 kB / 0.5089 GB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-05/0.4434, allocations: 79.06 kB / 0.509 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.4436, allocations: 130.2 kB / 0.5091 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4436, allocations: 0 / 0.5091 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4436, allocations: 4 kB / 0.5092 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.4436, allocations: 0 / 0.5092 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006248/0.4442, allocations: 0.5833 MB / 0.5097 GB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4442, allocations: 5.719 kB / 0.5097 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/0.4443, allocations: 15.98 kB / 0.5097 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4443, allocations: 4 kB / 0.5097 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.4443, allocations: 23.98 kB / 0.5098 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4444, allocations: 4 kB / 0.5098 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4444, allocations: 0 / 0.5098 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007389/0.4451, allocations: 0.5246 MB / 0.5103 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005985/0.4457, allocations: 495.6 kB / 0.5108 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.941e-05/0.4458, allocations: 20 kB / 0.5108 GB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.446, allocations: 35.97 kB / 0.5108 GB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.4462, allocations: 51.94 kB / 0.5109 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.4463, allocations: 111.9 kB / 0.511 GB, free: 2.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008132/0.4471, allocations: 0.69 MB / 0.5116 GB, free: 1.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4471, allocations: 0 / 0.5116 GB, free: 1.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003453/0.4475, allocations: 80 kB / 0.5117 GB, free: 1.469 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.0001589/0.4477, allocations: 138.7 kB / 0.5119 GB, free: 1.324 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006488/0.4483, allocations: 0.6188 MB / 0.5125 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4483, allocations: 1.594 kB / 0.5125 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004197/0.4487, allocations: 0.5132 MB / 0.513 GB, free: 96 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007299/0.4495, allocations: 170.3 kB / 0.5131 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.4511, allocations: 1.083 MB / 0.5142 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.4518, allocations: 0.9796 MB / 0.5151 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003417/0.4521, allocations: 159 kB / 0.5153 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.4523, allocations: 79.28 kB / 0.5154 GB, free: 13.59 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4523, allocations: 0 / 0.5154 GB, free: 13.59 MB / 394.7 MB Notification: Performance of Templates: time 0.009034/0.4614, allocations: 6.408 MB / 0.5216 GB, free: 7.207 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