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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002133/0.002133, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002784/0.002784, allocations: 206.3 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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=5010,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=5010,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 63.91 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2732, allocations: 53.41 MB / 431.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003369/0.2766, allocations: 2.006 MB / 433.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.2789, allocations: 1.002 MB / 434.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.279, allocations: 4 kB / 434.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.2792, allocations: 39.64 kB / 434.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.2794, allocations: 59.52 kB / 434.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.2798, allocations: 135.8 kB / 434.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.2803, allocations: 391.1 kB / 435.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.2805, allocations: 67.53 kB / 435.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2816, allocations: 0.9747 MB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002939/0.2819, allocations: 187.2 kB / 436.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.831e-05/0.282, allocations: 36 kB / 436.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.35e-05/0.2821, allocations: 36 kB / 436.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.2823, allocations: 167.2 kB / 436.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.2825, allocations: 202.6 kB / 436.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.2835, allocations: 0.9944 MB / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2835, allocations: 0 / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2835, allocations: 0 / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.2835, allocations: 0 / 437.9 MB, free: 228 kB / 334.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.001365/0.2849, allocations: 1.07 MB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.285, allocations: 15.98 kB / 439 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.2851, allocations: 84.42 kB / 439.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005908/0.2857, allocations: 371 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/0.2857, allocations: 16.38 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.68e-05/0.2858, allocations: 16.38 kB / 439.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.2865, allocations: 444.3 kB / 439.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2866, allocations: 0 / 439.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.2866, allocations: 11.94 kB / 439.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2866, allocations: 4 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005944/0.2872, allocations: 338.7 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.2885, allocations: 0.7418 MB / 441 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.2891, allocations: 313.2 kB / 441.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.2894, allocations: 243.6 kB / 441.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2895, allocations: 4 kB / 441.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007817/0.2903, allocations: 0.5156 MB / 442.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.2903, allocations: 0 / 442.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001617/0.2919, allocations: 0.9971 MB / 443.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.292, allocations: 178.2 kB / 443.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.2934, allocations: 1 MB / 444.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/0.2935, allocations: 41.64 kB / 444.3 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.2937, allocations: 158 kB / 444.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.809e-05/0.2937, allocations: 63.52 kB / 444.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/0.294, allocations: 169.3 kB / 444.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.2942, allocations: 334.8 kB / 445 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.2945, allocations: 258.7 kB / 445.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.2949, allocations: 287.8 kB / 445.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006429/0.2956, allocations: 0.4937 MB / 446 MB, free: 7.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2956, allocations: 0 / 446 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001106/0.2967, allocations: 0.7177 MB / 446.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.2968, allocations: 138.8 kB / 446.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2968, allocations: 64 / 446.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.2968, allocations: 8 kB / 446.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.34e-05/0.2969, allocations: 11.94 kB / 446.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.2969, allocations: 7.984 kB / 446.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.2971, allocations: 23.89 kB / 446.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.2973, allocations: 111.9 kB / 447 MB, free: 6.453 MB / 350.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.0006904/0.298, allocations: 0.5379 MB / 447.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.2981, allocations: 79.53 kB / 447.6 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.2983, allocations: 122.5 kB / 447.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2983, allocations: 4 kB / 447.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2983, allocations: 0 / 447.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2983, allocations: 3.984 kB / 447.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006816/0.299, allocations: 0.4928 MB / 448.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.299, allocations: 4 kB / 448.3 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.933e-05/0.299, allocations: 15.98 kB / 448.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.299, allocations: 0 / 448.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.2991, allocations: 23.98 kB / 448.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2991, allocations: 4 kB / 448.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2991, allocations: 48 / 448.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.3004, allocations: 0.8422 MB / 449.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009146/0.3013, allocations: 0.5046 MB / 449.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3014, allocations: 24 kB / 449.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.3016, allocations: 15.98 kB / 449.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.3017, allocations: 48.08 kB / 449.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.3019, allocations: 119.9 kB / 449.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.3029, allocations: 0.7251 MB / 450.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3029, allocations: 0 / 450.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.3033, allocations: 88 kB / 450.7 MB, free: 2.672 MB / 350.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.0001953/0.3035, allocations: 130.7 kB / 450.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3046, allocations: 0.8154 MB / 451.6 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3046, allocations: 4.219 kB / 451.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006102/0.3052, allocations: 0.5237 MB / 452.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008817/0.3061, allocations: 209.9 kB / 452.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.3087, allocations: 1.475 MB / 453.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.3093, allocations: 369.3 kB / 454.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003855/0.3097, allocations: 169.1 kB / 454.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.3098, allocations: 71.3 kB / 454.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3098, allocations: 0 / 454.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01573/0.3256, allocations: 8.468 MB / 462.9 MB, free: 6.273 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.747436232864857]