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.001774/0.001774, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.0021/0.0021, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001697/0.001697, allocations: 55.92 kB / 378.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2971, allocations: 53.35 MB / 431.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004528/0.3016, allocations: 2.138 MB / 433.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.3043, allocations: 1.068 MB / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.3044, allocations: 0 / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.3046, allocations: 43.58 kB / 434.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.3047, allocations: 55.56 kB / 434.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.3051, allocations: 138.7 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.3056, allocations: 391.1 kB / 435.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.3058, allocations: 75.53 kB / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.3069, allocations: 0.9669 MB / 436.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.3072, allocations: 203.2 kB / 436.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.828e-05/0.3072, allocations: 36 kB / 436.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.53e-05/0.3073, allocations: 32 kB / 436.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.3075, allocations: 175.2 kB / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.3079, allocations: 282.1 kB / 437.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.3089, allocations: 0.9778 MB / 438.2 MB, free: 380 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3089, allocations: 4 kB / 438.2 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3089, allocations: 4 kB / 438.2 MB, free: 372 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.3089, allocations: 0 / 438.2 MB, free: 372 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.001367/0.3103, allocations: 1.063 MB / 439.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3103, allocations: 8.031 kB / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3104, allocations: 88.36 kB / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005646/0.311, allocations: 375 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.311, allocations: 12.38 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.584e-05/0.3111, allocations: 20.38 kB / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006348/0.3117, allocations: 313.5 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3117, allocations: 3.984 kB / 440 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.3118, allocations: 8 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3118, allocations: 4 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.3122, allocations: 203.9 kB / 440.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3137, allocations: 0.8581 MB / 441.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.3141, allocations: 174.5 kB / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002685/0.3144, allocations: 120.8 kB / 441.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.3144, allocations: 0 / 441.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006641/0.3151, allocations: 387.7 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.3151, allocations: 0 / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00144/0.3165, allocations: 0.7375 MB / 442.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.3167, allocations: 182.2 kB / 442.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.3181, allocations: 0.9961 MB / 443.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.3181, allocations: 37.8 kB / 443.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3182, allocations: 157.8 kB / 443.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.3183, allocations: 63.52 kB / 443.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.3186, allocations: 169.3 kB / 444.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3187, allocations: 338.7 kB / 444.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.319, allocations: 120 kB / 444.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3193, allocations: 172.9 kB / 444.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.3199, allocations: 473.7 kB / 445.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3199, allocations: 0 / 445.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001076/0.321, allocations: 0.5743 MB / 445.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.3211, allocations: 138.8 kB / 445.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3211, allocations: 0 / 445.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.3211, allocations: 8.062 kB / 445.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3212, allocations: 15.98 kB / 445.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3213, allocations: 4 kB / 445.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.3215, allocations: 23.94 kB / 445.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.3216, allocations: 107.9 kB / 446.1 MB, free: 8.059 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.0006747/0.3223, allocations: 0.5418 MB / 446.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.3224, allocations: 79.53 kB / 446.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.3226, allocations: 126.5 kB / 446.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3226, allocations: 3.984 kB / 446.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3226, allocations: 4 kB / 446.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3226, allocations: 0 / 446.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007477/0.3234, allocations: 0.5936 MB / 447.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3234, allocations: 4 kB / 447.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.519e-05/0.3234, allocations: 11.98 kB / 447.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3234, allocations: 0 / 447.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.3235, allocations: 27.98 kB / 447.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3235, allocations: 0 / 447.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3235, allocations: 0 / 447.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.3246, allocations: 0.7139 MB / 448.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008871/0.3255, allocations: 0.493 MB / 448.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3256, allocations: 24 kB / 448.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.3258, allocations: 11.98 kB / 448.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.326, allocations: 59.88 kB / 448.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.3261, allocations: 119.9 kB / 448.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009928/0.3271, allocations: 0.725 MB / 449.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3271, allocations: 0 / 449.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.3274, allocations: 91.94 kB / 449.7 MB, free: 4.312 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.0001957/0.3276, allocations: 130.8 kB / 449.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009016/0.3285, allocations: 0.5482 MB / 450.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3285, allocations: 3.938 kB / 450.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.329, allocations: 393.5 kB / 450.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.3299, allocations: 201.8 kB / 450.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.332, allocations: 1.335 MB / 452.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007618/0.3328, allocations: 0.9636 MB / 453.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003287/0.3331, allocations: 161.2 kB / 453.4 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.3333, allocations: 83.27 kB / 453.5 MB, free: 368 kB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3333, allocations: 0 / 453.5 MB, free: 368 kB / 350.1 MB Notification: Performance of Templates: time 0.01348/0.3468, allocations: 7.857 MB / 461.3 MB, free: 8.535 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 -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/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_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.795080675045028]