Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002093/0.002093, allocations: 79.27 kB / 21.24 MB, free: 0.5391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002355/0.002355, allocations: 160.9 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 66.23 kB / 325.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1131, allocations: 53.39 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003694/0.1168, allocations: 2.012 MB / 380.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.1192, allocations: 1.01 MB / 381.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.1193, allocations: 7.938 kB / 381.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.1196, allocations: 35.66 kB / 382 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.1197, allocations: 55.52 kB / 382 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.1202, allocations: 135.8 kB / 382.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006871/0.1209, allocations: 391.1 kB / 382.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1212, allocations: 71.58 kB / 382.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.1225, allocations: 0.9669 MB / 383.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003651/0.1229, allocations: 203.2 kB / 383.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.161e-05/0.123, allocations: 32 kB / 383.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.961e-05/0.1231, allocations: 36 kB / 383.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.1233, allocations: 163.3 kB / 384 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002497/0.1235, allocations: 198.5 kB / 384.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.1245, allocations: 0.9883 MB / 385.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1245, allocations: 0 / 385.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1245, allocations: 0 / 385.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1245, allocations: 0 / 385.2 MB, free: 9.16 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.001245/0.1258, allocations: 1.07 MB / 386.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1258, allocations: 11.98 kB / 386.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.1259, allocations: 88.42 kB / 386.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.1264, allocations: 382.8 kB / 386.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.1264, allocations: 16.38 kB / 386.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.24e-05/0.1265, allocations: 20.38 kB / 386.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007164/0.1272, allocations: 436.3 kB / 387.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1272, allocations: 0 / 387.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/0.1273, allocations: 8 kB / 387.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1273, allocations: 4 kB / 387.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005301/0.1278, allocations: 342.6 kB / 387.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.129, allocations: 0.7457 MB / 388.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.1296, allocations: 313.2 kB / 388.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.1299, allocations: 251.6 kB / 388.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.1299, allocations: 0 / 388.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006937/0.1306, allocations: 0.5107 MB / 389.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.1306, allocations: 0 / 389.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001587/0.1322, allocations: 1.005 MB / 390.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1323, allocations: 174.2 kB / 390.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.1337, allocations: 0.9962 MB / 391.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.1337, allocations: 41.69 kB / 391.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1339, allocations: 161.9 kB / 391.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.561e-05/0.1339, allocations: 59.52 kB / 391.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.1342, allocations: 169.3 kB / 391.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1343, allocations: 334.8 kB / 392.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.1347, allocations: 258.7 kB / 392.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/0.135, allocations: 291 kB / 392.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.1357, allocations: 0.4938 MB / 393.3 MB, free: 480 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1357, allocations: 4 kB / 393.3 MB, free: 476 kB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001104/0.1368, allocations: 0.7293 MB / 394 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.1369, allocations: 134.8 kB / 394.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1369, allocations: 0 / 394.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1369, allocations: 7.984 kB / 394.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.794e-05/0.137, allocations: 20.06 kB / 394.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.137, allocations: 0 / 394.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.1372, allocations: 27.94 kB / 394.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.1374, allocations: 111.9 kB / 394.3 MB, free: 15.36 MB / 366.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.000638/0.138, allocations: 0.5302 MB / 394.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1381, allocations: 79.53 kB / 394.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002078/0.1383, allocations: 130.5 kB / 395.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1383, allocations: 0 / 395.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1383, allocations: 0 / 395.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1383, allocations: 4 kB / 395.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.139, allocations: 0.5005 MB / 395.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.139, allocations: 8 kB / 395.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.598e-05/0.139, allocations: 11.94 kB / 395.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.139, allocations: 0 / 395.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.1391, allocations: 27.97 kB / 395.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1391, allocations: 0 / 395.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1391, allocations: 96 / 395.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.1403, allocations: 0.8508 MB / 396.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009333/0.1413, allocations: 0.4969 MB / 397 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.1414, allocations: 24 kB / 397 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.1416, allocations: 15.98 kB / 397 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.1417, allocations: 55.88 kB / 397.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.1419, allocations: 119.9 kB / 397.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.1429, allocations: 0.7328 MB / 397.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1429, allocations: 0 / 397.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.1433, allocations: 91.94 kB / 398 MB, free: 11.55 MB / 366.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.0001844/0.1435, allocations: 131.3 kB / 398.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.1446, allocations: 0.8192 MB / 398.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1446, allocations: 0 / 398.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005952/0.1452, allocations: 0.5276 MB / 399.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008609/0.146, allocations: 202.7 kB / 399.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.1485, allocations: 1.475 MB / 401.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.149, allocations: 365.3 kB / 401.5 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003636/0.1494, allocations: 157.1 kB / 401.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.1496, allocations: 84.33 kB / 401.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1496, allocations: 0 / 401.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of Templates: time 0.01515/0.1647, allocations: 8.34 MB / 410.1 MB, free: 15.32 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.653256169054657]