Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001664/0.001664, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 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.001449/0.001449, allocations: 210.7 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2645, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00348/0.268, allocations: 2.01 MB / 434.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.2705, allocations: 0.9979 MB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.2707, allocations: 7.938 kB / 435.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.2709, allocations: 39.59 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.271, allocations: 63.5 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.2715, allocations: 135.8 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000519/0.272, allocations: 387.1 kB / 436 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.2723, allocations: 78.48 kB / 436 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.2734, allocations: 0.9747 MB / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.2737, allocations: 203.2 kB / 437.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-05/0.2738, allocations: 36 kB / 437.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.6e-05/0.2739, allocations: 36 kB / 437.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.2741, allocations: 163.3 kB / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002589/0.2743, allocations: 198.5 kB / 437.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.2754, allocations: 0.9803 MB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.2754, allocations: 7.984 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2754, allocations: 0 / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.2754, allocations: 3.938 kB / 438.6 MB, free: 408 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.001378/0.2768, allocations: 1.066 MB / 439.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2768, allocations: 8.031 kB / 439.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.2769, allocations: 88.41 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.2775, allocations: 383 kB / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.2776, allocations: 20.31 kB / 440.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.716e-05/0.2776, allocations: 16.38 kB / 440.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.2784, allocations: 436.3 kB / 440.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2784, allocations: 0 / 440.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.2785, allocations: 8 kB / 440.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.2785, allocations: 4 kB / 440.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005656/0.279, allocations: 334.7 kB / 441 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.2804, allocations: 0.7496 MB / 441.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.2809, allocations: 313.2 kB / 442 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.2813, allocations: 247.6 kB / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.2813, allocations: 0 / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007595/0.282, allocations: 0.5048 MB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.864e-06/0.282, allocations: 0 / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001613/0.2837, allocations: 0.9988 MB / 443.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.2838, allocations: 182.2 kB / 443.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.2852, allocations: 0.9922 MB / 444.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.2852, allocations: 37.69 kB / 445 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.2854, allocations: 161.9 kB / 445.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.508e-05/0.2855, allocations: 63.52 kB / 445.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.2857, allocations: 169.3 kB / 445.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2858, allocations: 334.8 kB / 445.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003602/0.2862, allocations: 250.8 kB / 445.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.2866, allocations: 295.8 kB / 446.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.2872, allocations: 0.4899 MB / 446.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2872, allocations: 0 / 446.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001137/0.2884, allocations: 0.7293 MB / 447.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.2885, allocations: 138.8 kB / 447.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.2885, allocations: 3.984 kB / 447.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2885, allocations: 0 / 447.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.69e-05/0.2886, allocations: 15.94 kB / 447.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2886, allocations: 4 kB / 447.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.2888, allocations: 23.88 kB / 447.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.289, allocations: 115.9 kB / 447.7 MB, free: 6.633 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.0006402/0.2896, allocations: 0.5303 MB / 448.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.2897, allocations: 83.47 kB / 448.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002133/0.2899, allocations: 130.6 kB / 448.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2899, allocations: 0 / 448.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.2899, allocations: 4 kB / 448.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.29, allocations: 4 kB / 448.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006554/0.2906, allocations: 0.4928 MB / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2906, allocations: 0 / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.298e-05/0.2907, allocations: 19.97 kB / 449 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2907, allocations: 7.984 kB / 449 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.564e-05/0.2907, allocations: 27.98 kB / 449 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2907, allocations: 0 / 449 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2907, allocations: 0 / 449 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.292, allocations: 0.8374 MB / 449.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009092/0.2929, allocations: 0.4968 MB / 450.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.293, allocations: 20 kB / 450.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.2932, allocations: 19.98 kB / 450.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.2934, allocations: 47.89 kB / 450.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.2935, allocations: 119.9 kB / 450.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001/0.2945, allocations: 0.7367 MB / 451.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2945, allocations: 0 / 451.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003798/0.2949, allocations: 88 kB / 451.4 MB, free: 2.844 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.0001852/0.2951, allocations: 126.8 kB / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.2962, allocations: 0.8193 MB / 452.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2962, allocations: 0 / 452.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.2968, allocations: 0.5276 MB / 452.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008558/0.2976, allocations: 196.4 kB / 453 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.3, allocations: 1.471 MB / 454.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.3005, allocations: 361.3 kB / 454.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.3008, allocations: 165.4 kB / 455 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.301, allocations: 79.27 kB / 455.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.301, allocations: 4 kB / 455.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01379/0.3148, allocations: 8.507 MB / 463.6 MB, free: 6.453 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.513735840009758]