Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 120.2 kB / 21.94 MB, free: 28 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 208.8 kB / 25.24 MB, free: 3.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 52.44 kB / 348.4 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2743, allocations: 49.16 MB / 397.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002955/0.2772, allocations: 2.138 MB / 399.7 MB, free: 8.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.2793, allocations: 1.074 MB / 400.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.2795, allocations: 2.156 kB / 400.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.2796, allocations: 39.91 kB / 400.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.2797, allocations: 55.75 kB / 400.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004092/0.2802, allocations: 135.9 kB / 401 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004622/0.2806, allocations: 388.5 kB / 401.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.2808, allocations: 81.09 kB / 401.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.2818, allocations: 0.9711 MB / 402.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.2821, allocations: 197.4 kB / 402.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.602e-05/0.2822, allocations: 34.09 kB / 402.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.963e-05/0.2823, allocations: 34.97 kB / 402.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.2824, allocations: 172.3 kB / 402.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2826, allocations: 284.3 kB / 403.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009504/0.2836, allocations: 0.9824 MB / 404.2 MB, free: 6.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2836, allocations: 0 / 404.2 MB, free: 6.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2836, allocations: 4 kB / 404.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.2836, allocations: 1.375 kB / 404.2 MB, free: 6.055 MB / 318.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.001152/0.2847, allocations: 1.065 MB / 405.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2848, allocations: 15.03 kB / 405.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2849, allocations: 83.45 kB / 405.3 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.2853, allocations: 371.3 kB / 405.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.2854, allocations: 19.52 kB / 405.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.2854, allocations: 18.41 kB / 405.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005752/0.286, allocations: 300.1 kB / 406 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.286, allocations: 4 kB / 406 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.055e-05/0.286, allocations: 13.33 kB / 406 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.286, allocations: 4.812 kB / 406 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004218/0.2865, allocations: 208 kB / 406.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.2878, allocations: 0.8495 MB / 407.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004071/0.2882, allocations: 174.2 kB / 407.3 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.2885, allocations: 118.2 kB / 407.4 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.2885, allocations: 1.375 kB / 407.4 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005656/0.2891, allocations: 391.8 kB / 407.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.2891, allocations: 0 / 407.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001222/0.2903, allocations: 0.7366 MB / 408.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.2904, allocations: 173.9 kB / 408.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.2916, allocations: 1.01 MB / 409.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.859e-05/0.2916, allocations: 31.02 kB / 409.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.2917, allocations: 159.5 kB / 409.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.2918, allocations: 59.08 kB / 409.9 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.2921, allocations: 165.3 kB / 410.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/0.2922, allocations: 343.5 kB / 410.4 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.2924, allocations: 123.9 kB / 410.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.2927, allocations: 168.6 kB / 410.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.2932, allocations: 472.9 kB / 411.2 MB, free: 1.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2932, allocations: 0 / 411.2 MB, free: 1.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009573/0.2942, allocations: 0.5793 MB / 411.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.019e-05/0.2943, allocations: 145.3 kB / 411.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.2943, allocations: 1.5 kB / 411.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.2943, allocations: 1.5 kB / 411.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.571e-05/0.2944, allocations: 14.33 kB / 411.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2944, allocations: 2.562 kB / 411.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.2947, allocations: 20.36 kB / 411.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.2948, allocations: 118.6 kB / 412 MB, free: 0.8633 MB / 318.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.0009091/0.2957, allocations: 0.5308 MB / 412.6 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.483e-05/0.2958, allocations: 82.67 kB / 412.7 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.296, allocations: 132.1 kB / 412.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.296, allocations: 5.078 kB / 412.8 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.296, allocations: 1.062 kB / 412.8 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.296, allocations: 0 / 412.8 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007077/0.2967, allocations: 0.5936 MB / 413.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2967, allocations: 0 / 413.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.858e-05/0.2967, allocations: 18.11 kB / 413.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2967, allocations: 0 / 413.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.2968, allocations: 27.17 kB / 413.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2968, allocations: 1.906 kB / 413.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2968, allocations: 0 / 413.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.2979, allocations: 0.7085 MB / 414.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008557/0.2988, allocations: 0.5026 MB / 414.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.2989, allocations: 20.88 kB / 414.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.2991, allocations: 19.36 kB / 414.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.2993, allocations: 50.2 kB / 414.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.2994, allocations: 114.1 kB / 414.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.3004, allocations: 0.7351 MB / 415.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3004, allocations: 0 / 415.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003775/0.3008, allocations: 90.14 kB / 415.7 MB, free: 14.48 MB / 334.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.0001842/0.301, allocations: 135.2 kB / 415.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000915/0.3019, allocations: 0.5439 MB / 416.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3019, allocations: 0 / 416.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.3024, allocations: 394.8 kB / 416.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.3032, allocations: 206.5 kB / 416.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.3056, allocations: 1.408 MB / 418.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007382/0.3064, allocations: 0.9727 MB / 419.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.3067, allocations: 90.92 kB / 419.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3067, allocations: 1.312 kB / 419.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Templates: time 0.009019/0.3157, allocations: 5.405 MB / 424.8 MB, free: 7.438 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 8.212336416123435]