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.001877/0.001877, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002293/0.002293, allocations: 214.5 kB / 24.48 MB, free: 3.93 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.469/1.469, allocations: 230.5 MB / 258.1 MB, free: 7.797 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.001949/0.001949, allocations: 63.91 kB / 379 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2831, allocations: 53.41 MB / 432.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003623/0.2867, allocations: 2.01 MB / 434.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.2892, allocations: 1.002 MB / 435.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2893, allocations: 4 kB / 435.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.2895, allocations: 39.64 kB / 435.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.2896, allocations: 59.5 kB / 435.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.2901, allocations: 131.8 kB / 435.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005106/0.2906, allocations: 387.1 kB / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.2908, allocations: 79.17 kB / 436.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.2919, allocations: 0.9708 MB / 437.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.2922, allocations: 187.2 kB / 437.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-05/0.2923, allocations: 36 kB / 437.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.425e-05/0.2923, allocations: 36 kB / 437.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.2925, allocations: 167.2 kB / 437.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002381/0.2928, allocations: 202.6 kB / 437.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.2938, allocations: 0.9874 MB / 438.7 MB, free: 256 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2938, allocations: 4 kB / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2938, allocations: 0 / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.2938, allocations: 0 / 438.7 MB, free: 252 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.001447/0.2953, allocations: 1.067 MB / 439.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2953, allocations: 15.92 kB / 439.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2954, allocations: 84.42 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005593/0.296, allocations: 374.9 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.296, allocations: 20.38 kB / 440.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.2961, allocations: 16.38 kB / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.2969, allocations: 432.3 kB / 440.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2969, allocations: 11.98 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.2969, allocations: 8 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2969, allocations: 7.938 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005485/0.2975, allocations: 338.7 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.2989, allocations: 0.7457 MB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000547/0.2994, allocations: 301.2 kB / 442 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.2998, allocations: 247.6 kB / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2998, allocations: 0 / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007484/0.3005, allocations: 0.5234 MB / 442.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.3005, allocations: 0 / 442.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001606/0.3022, allocations: 0.9894 MB / 443.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.3023, allocations: 182.2 kB / 444 MB, free: 10.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.3037, allocations: 0.9961 MB / 445 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.3038, allocations: 37.7 kB / 445 MB, free: 9.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.3039, allocations: 157.8 kB / 445.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.304, allocations: 59.58 kB / 445.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.3043, allocations: 173.3 kB / 445.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.3045, allocations: 334.8 kB / 445.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.3048, allocations: 254.8 kB / 446 MB, free: 8.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003985/0.3052, allocations: 299 kB / 446.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006781/0.3059, allocations: 0.4937 MB / 446.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3059, allocations: 4 kB / 446.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001153/0.3071, allocations: 0.7138 MB / 447.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.3072, allocations: 141.6 kB / 447.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3072, allocations: 0 / 447.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3072, allocations: 4 kB / 447.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.813e-05/0.3073, allocations: 19.98 kB / 447.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3073, allocations: 4 kB / 447.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.3076, allocations: 23.94 kB / 447.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.3077, allocations: 107.9 kB / 447.8 MB, free: 6.48 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.0007352/0.3084, allocations: 0.5378 MB / 448.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.3085, allocations: 83.53 kB / 448.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.3088, allocations: 134.6 kB / 448.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3088, allocations: 3.938 kB / 448.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.3088, allocations: 4 kB / 448.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3088, allocations: 0 / 448.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.3095, allocations: 0.4928 MB / 449 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3095, allocations: 0 / 449 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-05/0.3095, allocations: 12 kB / 449 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3095, allocations: 0 / 449 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.3096, allocations: 27.98 kB / 449.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3096, allocations: 0 / 449.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3096, allocations: 4 kB / 449.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.3109, allocations: 0.8461 MB / 449.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000896/0.3118, allocations: 0.493 MB / 450.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.3119, allocations: 20.12 kB / 450.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3121, allocations: 19.98 kB / 450.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.3122, allocations: 47.95 kB / 450.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.3124, allocations: 119.9 kB / 450.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.3134, allocations: 0.7328 MB / 451.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3134, allocations: 0 / 451.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004215/0.3139, allocations: 83.94 kB / 451.4 MB, free: 2.691 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.0001841/0.314, allocations: 134.8 kB / 451.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3152, allocations: 0.8154 MB / 452.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3152, allocations: 3.938 kB / 452.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.3158, allocations: 0.52 MB / 452.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008572/0.3166, allocations: 205.9 kB / 453.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3193, allocations: 1.551 MB / 454.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/0.3198, allocations: 369.3 kB / 455 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000271/0.3201, allocations: 95.23 kB / 455.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3201, allocations: 3.938 kB / 455.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of Templates: time 0.009249/0.3293, allocations: 5.456 MB / 460.6 MB, free: 9.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/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_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: 7.966304449830204]