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.0009674/0.0009677, allocations: 96.66 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 204.1 kB / 18.93 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.000233, allocations: 8 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.0944, allocations: 51.53 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002422/0.09684, allocations: 1.815 MB / 361.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.09907, allocations: 1.064 MB / 362.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.09923, allocations: 4 kB / 362.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.09939, allocations: 27.78 kB / 362.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.09954, allocations: 35.66 kB / 362.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.09994, allocations: 111.9 kB / 363 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.1003, allocations: 339.1 kB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.1006, allocations: 107 kB / 363.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009465/0.1015, allocations: 0.9123 MB / 364.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.1018, allocations: 163.2 kB / 364.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.822e-05/0.1018, allocations: 8 kB / 364.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.864e-05/0.1019, allocations: 12 kB / 364.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.1021, allocations: 147.3 kB / 364.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002628/0.1023, allocations: 287.8 kB / 364.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006459/0.103, allocations: 0.7835 MB / 365.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.103, allocations: 3.938 kB / 365.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.103, allocations: 0 / 365.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.103, allocations: 0 / 365.7 MB, free: 7.488 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.001238/0.1043, allocations: 0.9669 MB / 366.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1043, allocations: 12.03 kB / 366.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.1045, allocations: 83.91 kB / 366.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005084/0.105, allocations: 436 kB / 367.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.1051, allocations: 12.38 kB / 367.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.1051, allocations: 20.38 kB / 367.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.1058, allocations: 309.5 kB / 367.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1058, allocations: 0 / 367.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.565e-05/0.1059, allocations: 8 kB / 367.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.1059, allocations: 4 kB / 367.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004551/0.1063, allocations: 211.9 kB / 367.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.1077, allocations: 0.8862 MB / 368.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004474/0.1082, allocations: 214.5 kB / 368.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.1085, allocations: 160.8 kB / 369 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.1085, allocations: 0 / 369 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000536/0.1091, allocations: 397.7 kB / 369.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.1091, allocations: 0 / 369.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001339/0.1104, allocations: 0.737 MB / 370.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.1105, allocations: 174.2 kB / 370.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.112, allocations: 1 MB / 371.3 MB, free: 1.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.358e-05/0.112, allocations: 37.69 kB / 371.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1122, allocations: 157.8 kB / 371.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.751e-05/0.1122, allocations: 55.34 kB / 371.5 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.869e-05/0.1123, allocations: 41.7 kB / 371.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1125, allocations: 338.8 kB / 371.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/0.1127, allocations: 131.9 kB / 372 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.113, allocations: 160.2 kB / 372.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000587/0.1136, allocations: 473.8 kB / 372.7 MB, free: 132 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1137, allocations: 4 kB / 372.7 MB, free: 128 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.1576/0.2713, allocations: 0.5782 MB / 373.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.44e-05/0.2714, allocations: 133.1 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.2714, allocations: 1.594 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2715, allocations: 1.438 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.2716, allocations: 19.36 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2716, allocations: 2.812 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.2719, allocations: 33.58 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.2721, allocations: 114.7 kB / 373.5 MB, free: 19.05 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.0006322/0.2727, allocations: 0.5355 MB / 374.1 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.2728, allocations: 78.56 kB / 374.2 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002364/0.2731, allocations: 128.5 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2731, allocations: 1.312 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2731, allocations: 0 / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2731, allocations: 3.188 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008409/0.274, allocations: 0.622 MB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.274, allocations: 1.812 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.274, allocations: 13.53 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.274, allocations: 1.469 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.2741, allocations: 25.55 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2741, allocations: 1.875 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2741, allocations: 0.5 kB / 374.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.2752, allocations: 0.7021 MB / 375.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007139/0.276, allocations: 0.4959 MB / 376.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.2761, allocations: 23.62 kB / 376.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.2763, allocations: 30.39 kB / 376.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.2765, allocations: 49.19 kB / 376.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.2766, allocations: 119.3 kB / 376.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009604/0.2776, allocations: 0.7314 MB / 377.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2776, allocations: 2.188 kB / 377.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003999/0.278, allocations: 92.69 kB / 377.2 MB, free: 17.81 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.0001543/0.2782, allocations: 140.7 kB / 377.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008212/0.279, allocations: 0.6572 MB / 378 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.279, allocations: 0 / 378 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.2795, allocations: 0.5245 MB / 378.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008651/0.2803, allocations: 189.6 kB / 378.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.2824, allocations: 1.641 MB / 380.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005343/0.283, allocations: 0.9701 MB / 381.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.2833, allocations: 87.83 kB / 381.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2833, allocations: 0 / 381.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of Templates: time 0.009215/0.2925, allocations: 5.396 MB / 386.8 MB, free: 13.94 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/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