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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008747/0.0008747, allocations: 98.78 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009262/0.0009262, allocations: 192.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000241/0.0002411, allocations: 4 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.131, allocations: 51.53 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002706/0.1337, allocations: 1.753 MB / 360.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1361, allocations: 1.002 MB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1363, allocations: 0 / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.1364, allocations: 23.78 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.739e-05/0.1365, allocations: 43.66 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.1369, allocations: 75.91 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.1372, allocations: 323.1 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.1374, allocations: 81.61 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009196/0.1384, allocations: 0.7838 MB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.1386, allocations: 187.4 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.374e-05/0.1387, allocations: 8 kB / 362.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.783e-05/0.1387, allocations: 8 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1389, allocations: 147.5 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.139, allocations: 137.3 kB / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009395/0.1399, allocations: 0.7951 MB / 364 MB, free: 8.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.14, allocations: 0 / 364 MB, free: 8.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.14, allocations: 0 / 364 MB, free: 8.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.14, allocations: 4 kB / 364 MB, free: 8.277 MB / 302.1 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.001214/0.1412, allocations: 0.9707 MB / 364.9 MB, free: 7.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1413, allocations: 8.031 kB / 365 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.1414, allocations: 82.97 kB / 365 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.1419, allocations: 403.5 kB / 365.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.1419, allocations: 23.95 kB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.142, allocations: 23.98 kB / 365.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.1426, allocations: 301.2 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1426, allocations: 0 / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.1427, allocations: 16 kB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.1427, allocations: 0 / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/0.1432, allocations: 211.8 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.1446, allocations: 0.8787 MB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.1451, allocations: 218.4 kB / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.1454, allocations: 156.8 kB / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1454, allocations: 0 / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005899/0.146, allocations: 389.8 kB / 367.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.904e-06/0.146, allocations: 3.938 kB / 367.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001329/0.1474, allocations: 0.7332 MB / 368.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1475, allocations: 174.2 kB / 368.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.1489, allocations: 1.004 MB / 369.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.149, allocations: 33.7 kB / 369.6 MB, free: 2.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1492, allocations: 146 kB / 369.7 MB, free: 2.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.475e-05/0.1492, allocations: 59.28 kB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.1493, allocations: 12 kB / 369.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1495, allocations: 338.9 kB / 370.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.1498, allocations: 127.9 kB / 370.2 MB, free: 1.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.15, allocations: 164.2 kB / 370.4 MB, free: 1.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.1504, allocations: 230.6 kB / 370.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1504, allocations: 4 kB / 370.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009236/0.1513, allocations: 0.5741 MB / 371.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.1514, allocations: 146.7 kB / 371.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1515, allocations: 0 / 371.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1515, allocations: 0 / 371.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.919e-05/0.1516, allocations: 15.94 kB / 371.4 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1516, allocations: 4 kB / 371.4 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.1519, allocations: 35.88 kB / 371.4 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.152, allocations: 119.9 kB / 371.5 MB, free: 332 kB / 302.1 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.2554/0.4075, allocations: 0.5227 MB / 372 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.4077, allocations: 74.22 kB / 372.1 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005175/0.4083, allocations: 129.2 kB / 372.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.433e-06/0.4083, allocations: 1.906 kB / 372.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.4083, allocations: 1.156 kB / 372.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.4083, allocations: 1.953 kB / 372.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.4093, allocations: 0.6233 MB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4093, allocations: 3.219 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.586e-05/0.4094, allocations: 13.73 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.4094, allocations: 0.625 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.979e-05/0.4095, allocations: 25.84 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.4095, allocations: 1.188 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4095, allocations: 3 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.4108, allocations: 0.6978 MB / 373.6 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007564/0.4116, allocations: 0.5004 MB / 374.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.4117, allocations: 20.44 kB / 374.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.412, allocations: 31.97 kB / 374.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.4122, allocations: 57.38 kB / 374.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.4124, allocations: 110.7 kB / 374.3 MB, free: 18.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001373/0.4138, allocations: 0.7288 MB / 375 MB, free: 18.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4138, allocations: 0 / 375 MB, free: 18.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005776/0.4144, allocations: 90.25 kB / 375.1 MB, free: 18.51 MB / 302.1 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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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.0002297/0.4146, allocations: 138.1 kB / 375.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.4156, allocations: 0.6569 MB / 375.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4156, allocations: 6.75 kB / 375.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005966/0.4162, allocations: 0.5311 MB / 376.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.4171, allocations: 173.8 kB / 376.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.4197, allocations: 1.506 MB / 378.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006488/0.4204, allocations: 0.9615 MB / 379.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003832/0.4208, allocations: 169.8 kB / 379.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.421, allocations: 70.36 kB / 379.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.421, allocations: 4 kB / 379.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Templates: time 0.01531/0.4363, allocations: 6.69 MB / 386 MB, free: 14.16 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches