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.001509/0.001509, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00185/0.00185, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 65.19 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1033, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003533/0.1069, allocations: 2.102 MB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.1092, allocations: 1.049 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.1094, allocations: 7.938 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000248/0.1097, allocations: 43.66 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.1099, allocations: 51.5 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.1104, allocations: 123.8 kB / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005533/0.111, allocations: 419 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.1112, allocations: 111 kB / 362.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009697/0.1122, allocations: 0.9397 MB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.1125, allocations: 187.2 kB / 363.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.1127, allocations: 39.94 kB / 363.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.684e-05/0.1127, allocations: 35.94 kB / 364 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001738/0.1129, allocations: 167.4 kB / 364.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.1132, allocations: 290.1 kB / 364.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008293/0.1141, allocations: 0.9733 MB / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1141, allocations: 0 / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1141, allocations: 0 / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.654e-05/0.1141, allocations: 0 / 365.4 MB, free: 6.812 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.00156/0.1157, allocations: 1.122 MB / 366.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1157, allocations: 8.031 kB / 366.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.1159, allocations: 80 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.1164, allocations: 428 kB / 367 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.1165, allocations: 24.38 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.1166, allocations: 20.38 kB / 367.1 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006451/0.1172, allocations: 301.5 kB / 367.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1172, allocations: 7.984 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.1173, allocations: 8 kB / 367.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1173, allocations: 4 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004477/0.1178, allocations: 199.9 kB / 367.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.1193, allocations: 0.8979 MB / 368.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004543/0.1197, allocations: 218.5 kB / 368.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.12, allocations: 156.8 kB / 368.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1201, allocations: 3.938 kB / 368.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005717/0.1207, allocations: 393.4 kB / 369.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.1207, allocations: 0 / 369.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001384/0.1221, allocations: 0.7375 MB / 370 MB, free: 1.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.997e-05/0.1222, allocations: 178.2 kB / 370.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.1237, allocations: 1 MB / 371.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.1237, allocations: 33.7 kB / 371.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.1239, allocations: 153.8 kB / 371.3 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.934e-05/0.124, allocations: 51.33 kB / 371.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.1242, allocations: 165 kB / 371.5 MB, free: 364 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1244, allocations: 342.8 kB / 371.9 MB, free: 12 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1643/0.2887, allocations: 119 kB / 372 MB, free: 20.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.289, allocations: 165.9 kB / 372.2 MB, free: 20.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.2895, allocations: 469.2 kB / 372.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2895, allocations: 2.156 kB / 372.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000925/0.2905, allocations: 0.5851 MB / 373.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.398e-05/0.2906, allocations: 139.8 kB / 373.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2906, allocations: 2.797 kB / 373.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2906, allocations: 1.125 kB / 373.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.942e-05/0.2907, allocations: 17.34 kB / 373.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2907, allocations: 1.703 kB / 373.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.291, allocations: 19.88 kB / 373.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.2911, allocations: 112.7 kB / 373.5 MB, free: 19.52 MB / 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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005841/0.2917, allocations: 0.5445 MB / 374 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.2918, allocations: 79.88 kB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.292, allocations: 130.3 kB / 374.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.292, allocations: 1.469 kB / 374.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.292, allocations: 1.062 kB / 374.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.292, allocations: 0.5625 kB / 374.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.2927, allocations: 0.6278 MB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2927, allocations: 0.8906 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.442e-05/0.2927, allocations: 11.11 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2927, allocations: 1.719 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.626e-05/0.2928, allocations: 27.23 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2928, allocations: 0.7812 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2928, allocations: 3.406 kB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2938, allocations: 0.702 MB / 375.6 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006182/0.2945, allocations: 0.4951 MB / 376.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.489e-05/0.2946, allocations: 22.16 kB / 376.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2947, allocations: 17.94 kB / 376.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.2949, allocations: 47.81 kB / 376.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.295, allocations: 122.1 kB / 376.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008702/0.2959, allocations: 0.7333 MB / 377 MB, free: 17.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2959, allocations: 0 / 377 MB, free: 17.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.2963, allocations: 89.69 kB / 377.1 MB, free: 17.77 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.2964, allocations: 133.7 kB / 377.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007851/0.2972, allocations: 0.6577 MB / 377.9 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2972, allocations: 3.312 kB / 377.9 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004317/0.2976, allocations: 0.5293 MB / 378.5 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.2984, allocations: 202.1 kB / 378.7 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3002, allocations: 1.318 MB / 380 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.3007, allocations: 0.9669 MB / 380.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002817/0.3009, allocations: 164.1 kB / 381.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.3011, allocations: 75.84 kB / 381.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3011, allocations: 0 / 381.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01165/0.3128, allocations: 7.726 MB / 388.9 MB, free: 13.05 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches