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.001807/0.001807, allocations: 73.95 kB / 21.24 MB, free: 0.5547 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.002135/0.002135, allocations: 152.2 kB / 24.49 MB, free: 3.723 MB / 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.43/1.43, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.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.001521/0.001521, allocations: 46.78 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0874/0.08892, allocations: 52.16 MB / 371.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003282/0.0922, allocations: 1.995 MB / 373.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.09429, allocations: 0.9707 MB / 374.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.588e-05/0.09437, allocations: 7.938 kB / 374.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.09456, allocations: 39.64 kB / 374.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.09469, allocations: 51.53 kB / 374.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.0952, allocations: 139.8 kB / 374.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005809/0.09578, allocations: 395.1 kB / 375.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.09597, allocations: 75.56 kB / 375.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.09699, allocations: 0.967 MB / 376.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.09729, allocations: 195.2 kB / 376.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.341e-05/0.09738, allocations: 36 kB / 376.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.639e-05/0.09747, allocations: 36 kB / 376.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.09765, allocations: 159.4 kB / 376.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.09789, allocations: 210.4 kB / 376.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.09884, allocations: 0.9845 MB / 377.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.09884, allocations: 0 / 377.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09884, allocations: 4 kB / 377.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.09885, allocations: 3.938 kB / 377.8 MB, free: 1.066 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.001308/0.1002, allocations: 1.066 MB / 378.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1002, allocations: 8.031 kB / 378.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.1003, allocations: 88.38 kB / 379 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.1008, allocations: 375 kB / 379.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.1009, allocations: 12.38 kB / 379.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.1009, allocations: 20.38 kB / 379.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.1016, allocations: 424.8 kB / 379.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1016, allocations: 3.938 kB / 379.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.1017, allocations: 12 kB / 379.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1017, allocations: 7.938 kB / 379.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.1022, allocations: 338.7 kB / 380.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.1035, allocations: 0.7495 MB / 380.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005442/0.104, allocations: 321.2 kB / 381.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003485/0.1044, allocations: 243.6 kB / 381.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1044, allocations: 0 / 381.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007561/0.1052, allocations: 0.5123 MB / 382 MB, free: 12.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1052, allocations: 8 kB / 382 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001612/0.1068, allocations: 1.012 MB / 383 MB, free: 11.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1069, allocations: 178.2 kB / 383.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.1083, allocations: 1 MB / 384.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.1083, allocations: 37.7 kB / 384.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1084, allocations: 157.9 kB / 384.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.642e-05/0.1085, allocations: 59.53 kB / 384.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.1087, allocations: 165.3 kB / 384.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1089, allocations: 338.8 kB / 384.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.1092, allocations: 254.7 kB / 385.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.1096, allocations: 299 kB / 385.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006517/0.1103, allocations: 497.7 kB / 385.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1103, allocations: 3.938 kB / 385.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00114/0.1114, allocations: 0.7293 MB / 386.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.1115, allocations: 138.8 kB / 386.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1115, allocations: 3.938 kB / 386.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1116, allocations: 4 kB / 386.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.783e-05/0.1117, allocations: 11.98 kB / 386.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1117, allocations: 12 kB / 386.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.1119, allocations: 19.94 kB / 386.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.112, allocations: 115.9 kB / 386.9 MB, free: 7.277 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.0006367/0.1127, allocations: 0.534 MB / 387.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1128, allocations: 79.53 kB / 387.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.113, allocations: 126.5 kB / 387.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.113, allocations: 4 kB / 387.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.113, allocations: 0 / 387.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.113, allocations: 3.984 kB / 387.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006568/0.1136, allocations: 0.4928 MB / 388.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1136, allocations: 3.984 kB / 388.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.1137, allocations: 12 kB / 388.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1137, allocations: 3.938 kB / 388.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.397e-05/0.1138, allocations: 31.97 kB / 388.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1138, allocations: 0 / 388.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1138, allocations: 0 / 388.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.115, allocations: 0.8456 MB / 389.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000904/0.1159, allocations: 0.4969 MB / 389.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.116, allocations: 24 kB / 389.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.1162, allocations: 15.98 kB / 389.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.1164, allocations: 51.95 kB / 389.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.1165, allocations: 115.9 kB / 389.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.1175, allocations: 0.7212 MB / 390.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1175, allocations: 3.938 kB / 390.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.1179, allocations: 96.08 kB / 390.6 MB, free: 3.488 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.0001611/0.118, allocations: 135.2 kB / 390.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.1191, allocations: 0.8155 MB / 391.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1191, allocations: 4 kB / 391.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006099/0.1197, allocations: 0.5276 MB / 392.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008446/0.1205, allocations: 204.2 kB / 392.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.1228, allocations: 1.471 MB / 393.7 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.1233, allocations: 365.3 kB / 394.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003573/0.1236, allocations: 165.2 kB / 394.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.1238, allocations: 76.36 kB / 394.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1238, allocations: 0 / 394.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01361/0.1374, allocations: 8.328 MB / 402.7 MB, free: 7.277 MB / 366.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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.370916067971848]