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.001854/0.001854, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002241/0.002241, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.569/1.569, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.002144/0.002144, allocations: 51.92 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1438, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003749/0.1475, allocations: 2.135 MB / 428.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.1502, allocations: 1.052 MB / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1503, allocations: 7.938 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.1505, allocations: 39.64 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1507, allocations: 59.5 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1511, allocations: 127.8 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000611/0.1517, allocations: 391.1 kB / 430.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.152, allocations: 75.09 kB / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2147/0.3666, allocations: 0.9641 MB / 431.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002974/0.3669, allocations: 195.2 kB / 431.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.432e-05/0.367, allocations: 33.78 kB / 431.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.666e-05/0.3671, allocations: 40.12 kB / 431.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.3673, allocations: 167 kB / 432.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3675, allocations: 290.9 kB / 432.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008878/0.3684, allocations: 0.9742 MB / 433.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3684, allocations: 2.844 kB / 433.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3684, allocations: 0 / 433.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.3684, allocations: 0 / 433.3 MB, free: 8.195 MB / 350.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.001279/0.3697, allocations: 1.139 MB / 434.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3697, allocations: 11.06 kB / 434.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.3699, allocations: 91.38 kB / 434.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004512/0.3703, allocations: 430.1 kB / 435 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.3704, allocations: 21.42 kB / 435 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.013e-05/0.3704, allocations: 19 kB / 435 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.3712, allocations: 305.3 kB / 435.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3712, allocations: 3.938 kB / 435.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.3712, allocations: 9.672 kB / 435.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3712, allocations: 3.188 kB / 435.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004743/0.3717, allocations: 209.3 kB / 435.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.3731, allocations: 0.8921 MB / 436.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.3736, allocations: 180.7 kB / 436.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.3739, allocations: 123.1 kB / 436.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.3739, allocations: 5.406 kB / 436.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005718/0.3745, allocations: 382.3 kB / 437.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.3745, allocations: 4.5 kB / 437.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001446/0.3759, allocations: 0.7435 MB / 437.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.376, allocations: 173.6 kB / 438 MB, free: 6.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.3773, allocations: 0.9977 MB / 439 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.65e-05/0.3773, allocations: 38.53 kB / 439.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.3774, allocations: 159.5 kB / 439.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.226e-05/0.3775, allocations: 59.56 kB / 439.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.3777, allocations: 173.8 kB / 439.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.177e-05/0.3778, allocations: 342.4 kB / 439.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.3781, allocations: 120.5 kB / 439.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.3784, allocations: 161.8 kB / 440.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.3789, allocations: 473 kB / 440.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3789, allocations: 0 / 440.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009595/0.3799, allocations: 0.5841 MB / 441.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.337e-05/0.3799, allocations: 133.5 kB / 441.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.38, allocations: 5.203 kB / 441.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.38, allocations: 1.688 kB / 441.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.3801, allocations: 17.36 kB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3801, allocations: 2.25 kB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.3803, allocations: 23.67 kB / 441.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.3805, allocations: 114.1 kB / 441.4 MB, free: 4.164 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.0006528/0.3812, allocations: 0.5345 MB / 441.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3813, allocations: 80.41 kB / 442 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.3815, allocations: 130.6 kB / 442.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3815, allocations: 1.156 kB / 442.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3816, allocations: 3.375 kB / 442.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3816, allocations: 2.047 kB / 442.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009224/0.3825, allocations: 0.6311 MB / 442.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3825, allocations: 0 / 442.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.352e-05/0.3825, allocations: 12.09 kB / 442.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3825, allocations: 8.984 kB / 442.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.62e-05/0.3826, allocations: 27.05 kB / 442.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3826, allocations: 1.312 kB / 442.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3826, allocations: 1.031 kB / 442.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.3839, allocations: 0.7049 MB / 443.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007587/0.3846, allocations: 0.4982 MB / 444 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3847, allocations: 21.17 kB / 444 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.385, allocations: 19.34 kB / 444.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.3852, allocations: 53.5 kB / 444.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/0.3854, allocations: 113.5 kB / 444.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001215/0.3866, allocations: 0.7297 MB / 445 MB, free: 2.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3866, allocations: 0 / 445 MB, free: 2.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.3871, allocations: 89.97 kB / 445 MB, free: 2.117 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.000243/0.3873, allocations: 137.3 kB / 445.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008683/0.3882, allocations: 0.5367 MB / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3882, allocations: 0 / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004519/0.3886, allocations: 395.6 kB / 446.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009671/0.3896, allocations: 206.9 kB / 446.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.392, allocations: 1.336 MB / 447.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006986/0.3927, allocations: 0.9672 MB / 448.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005197/0.3932, allocations: 164.3 kB / 448.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3934, allocations: 74.66 kB / 448.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3934, allocations: 0 / 448.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of Templates: time 0.01518/0.4085, allocations: 7.747 MB / 456.6 MB, free: 13.42 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.962488915771246]