Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001898/0.001898, allocations: 186 kB / 22.21 MB, free: 116 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 51.92 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.281, allocations: 52.13 MB / 420.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004803/0.2858, allocations: 2.132 MB / 423 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003512/0.2893, allocations: 1.029 MB / 424 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.2894, allocations: 7.938 kB / 424 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.2896, allocations: 31.66 kB / 424.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.2898, allocations: 63.5 kB / 424.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005528/0.2904, allocations: 115.9 kB / 424.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006881/0.2911, allocations: 399 kB / 424.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.2914, allocations: 71.11 kB / 424.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001563/0.2929, allocations: 0.9669 MB / 425.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003718/0.2933, allocations: 207.2 kB / 425.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.2934, allocations: 32 kB / 425.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.792e-05/0.2935, allocations: 36 kB / 425.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.2937, allocations: 167.3 kB / 426.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003768/0.2941, allocations: 286 kB / 426.4 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.2954, allocations: 0.9818 MB / 427.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2954, allocations: 0 / 427.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2954, allocations: 0 / 427.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2954, allocations: 0 / 427.4 MB, free: 8.633 MB / 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.001828/0.2972, allocations: 1.146 MB / 428.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.2973, allocations: 11.89 kB / 428.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.2975, allocations: 84.42 kB / 428.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.2982, allocations: 436.8 kB / 429 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.2982, allocations: 24.36 kB / 429 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-05/0.2983, allocations: 20.38 kB / 429.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008818/0.2992, allocations: 297.7 kB / 429.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2992, allocations: 0 / 429.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.2993, allocations: 12 kB / 429.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.2993, allocations: 7.984 kB / 429.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006737/0.3, allocations: 212.3 kB / 429.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.302, allocations: 0.8864 MB / 430.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000669/0.3026, allocations: 178.5 kB / 430.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003935/0.303, allocations: 116.8 kB / 430.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3031, allocations: 4 kB / 430.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008477/0.3039, allocations: 382 kB / 431.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.3039, allocations: 0 / 431.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.002077/0.306, allocations: 0.7491 MB / 431.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.3061, allocations: 178.2 kB / 432.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.3082, allocations: 0.9962 MB / 433.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.422e-05/0.3083, allocations: 33.7 kB / 433.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.3084, allocations: 161.9 kB / 433.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.3085, allocations: 55.62 kB / 433.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.3089, allocations: 169.3 kB / 433.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3091, allocations: 342.8 kB / 433.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3095, allocations: 116 kB / 433.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.3098, allocations: 172.2 kB / 434.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005994/0.3104, allocations: 477.8 kB / 434.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3104, allocations: 4 kB / 434.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001028/0.3114, allocations: 0.5859 MB / 435.1 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.3115, allocations: 134.8 kB / 435.3 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3115, allocations: 4 kB / 435.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3115, allocations: 0 / 435.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.37e-05/0.3116, allocations: 12.16 kB / 435.3 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3116, allocations: 11.92 kB / 435.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.3118, allocations: 19.98 kB / 435.3 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.312, allocations: 111.9 kB / 435.4 MB, free: 104 kB / 334.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.0006262/0.3126, allocations: 0.5335 MB / 436 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3127, allocations: 83.48 kB / 436 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.3129, allocations: 142.4 kB / 436.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3129, allocations: 3.938 kB / 436.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3129, allocations: 0 / 436.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3129, allocations: 0 / 436.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007605/0.3137, allocations: 0.6219 MB / 436.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3137, allocations: 0 / 436.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.694e-05/0.3137, allocations: 12 kB / 436.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.3137, allocations: 0 / 436.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.3138, allocations: 27.98 kB / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3138, allocations: 0 / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.3138, allocations: 7.984 kB / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.3149, allocations: 0.71 MB / 437.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006614/0.3156, allocations: 0.4884 MB / 438 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3157, allocations: 24 kB / 438.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3158, allocations: 15.98 kB / 438.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.316, allocations: 51.94 kB / 438.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.3162, allocations: 115.9 kB / 438.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009874/0.3171, allocations: 0.7329 MB / 439 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3171, allocations: 0 / 439 MB, free: 12.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.3175, allocations: 91.89 kB / 439.1 MB, free: 12.3 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.0001992/0.3177, allocations: 146.7 kB / 439.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008808/0.3186, allocations: 0.5443 MB / 439.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3186, allocations: 0 / 439.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005228/0.3191, allocations: 393.5 kB / 440.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008586/0.32, allocations: 196.3 kB / 440.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.3221, allocations: 1.351 MB / 441.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006861/0.3228, allocations: 0.9635 MB / 442.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003207/0.3232, allocations: 173.2 kB / 442.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.3233, allocations: 75.28 kB / 442.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3233, allocations: 3.938 kB / 442.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Templates: time 0.01374/0.3371, allocations: 7.825 MB / 450.7 MB, free: 0.5352 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.796897976659238]