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.001574/0.001574, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001921/0.001921, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.001616/0.001616, allocations: 51.91 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2558, allocations: 53.37 MB / 432.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003433/0.2592, allocations: 2.131 MB / 434.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.2615, allocations: 1.06 MB / 435.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2617, allocations: 0 / 435.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.2619, allocations: 39.64 kB / 435.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.262, allocations: 59.5 kB / 435.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.2624, allocations: 139.7 kB / 435.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004773/0.2629, allocations: 395.1 kB / 436.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2631, allocations: 75.52 kB / 436.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.2641, allocations: 0.9669 MB / 437.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.2644, allocations: 211.2 kB / 437.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.943e-05/0.2645, allocations: 36 kB / 437.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.99e-05/0.2646, allocations: 32 kB / 437.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.2648, allocations: 171.2 kB / 437.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.265, allocations: 282.1 kB / 438 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.2661, allocations: 0.974 MB / 438.9 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2661, allocations: 7.938 kB / 438.9 MB, free: 352 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2661, allocations: 4 kB / 438.9 MB, free: 348 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.2661, allocations: 0 / 438.9 MB, free: 348 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.001417/0.2675, allocations: 1.07 MB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2675, allocations: 8.031 kB / 440 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.2677, allocations: 84.42 kB / 440.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.2682, allocations: 374.9 kB / 440.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.2682, allocations: 12.38 kB / 440.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.2683, allocations: 20.38 kB / 440.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.2689, allocations: 309.5 kB / 440.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2689, allocations: 4 kB / 440.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.269, allocations: 8 kB / 440.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.269, allocations: 7.938 kB / 440.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004291/0.2694, allocations: 203.9 kB / 441 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.2708, allocations: 0.8542 MB / 441.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.2712, allocations: 174.5 kB / 442 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.2715, allocations: 120.8 kB / 442.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.2715, allocations: 0 / 442.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006205/0.2721, allocations: 383.7 kB / 442.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.2721, allocations: 0 / 442.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00134/0.2735, allocations: 0.7375 MB / 443.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.2736, allocations: 178.2 kB / 443.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.275, allocations: 1 MB / 444.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.275, allocations: 37.7 kB / 444.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2751, allocations: 157.8 kB / 444.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.055e-05/0.2752, allocations: 63.58 kB / 444.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.2754, allocations: 165.3 kB / 444.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2756, allocations: 342.7 kB / 445.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.2759, allocations: 120 kB / 445.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002916/0.2762, allocations: 165 kB / 445.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006156/0.2768, allocations: 481.6 kB / 446 MB, free: 8.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2768, allocations: 0 / 446 MB, free: 8.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000967/0.2777, allocations: 0.5745 MB / 446.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.2779, allocations: 138.7 kB / 446.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.2779, allocations: 3.938 kB / 446.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2779, allocations: 4 kB / 446.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.348e-05/0.278, allocations: 15.92 kB / 446.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.278, allocations: 4 kB / 446.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.2782, allocations: 27.88 kB / 446.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.2783, allocations: 111.9 kB / 446.8 MB, free: 8.035 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.0006202/0.2789, allocations: 0.538 MB / 447.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.279, allocations: 79.53 kB / 447.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.2792, allocations: 122.5 kB / 447.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.2792, allocations: 3.984 kB / 447.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2793, allocations: 4 kB / 447.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2793, allocations: 0 / 447.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007339/0.28, allocations: 0.5975 MB / 448.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.28, allocations: 4 kB / 448.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.766e-05/0.28, allocations: 16.11 kB / 448.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.28, allocations: 0 / 448.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/0.2801, allocations: 27.98 kB / 448.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2801, allocations: 0 / 448.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2801, allocations: 0 / 448.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.2812, allocations: 0.7061 MB / 448.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008421/0.282, allocations: 0.5007 MB / 449.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.2821, allocations: 24 kB / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.2823, allocations: 15.98 kB / 449.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.2824, allocations: 47.95 kB / 449.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.2826, allocations: 123.8 kB / 449.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009677/0.2835, allocations: 0.7251 MB / 450.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2835, allocations: 0 / 450.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.2839, allocations: 88 kB / 450.4 MB, free: 4.297 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.0001777/0.2841, allocations: 130.8 kB / 450.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008698/0.285, allocations: 0.5442 MB / 451.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.285, allocations: 3.938 kB / 451.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004885/0.2854, allocations: 393.5 kB / 451.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008055/0.2862, allocations: 205.6 kB / 451.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.2885, allocations: 1.415 MB / 453.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.2892, allocations: 0.9675 MB / 454.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.2894, allocations: 95.23 kB / 454.2 MB, free: 416 kB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2894, allocations: 3.938 kB / 454.2 MB, free: 412 kB / 350.1 MB Notification: Performance of Templates: time 0.008355/0.2978, allocations: 5.401 MB / 459.6 MB, free: 10.97 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/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: 7.627817357890308]