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.001588/0.001588, allocations: 120.8 kB / 18.46 MB, free: 4.449 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.001879/0.001879, allocations: 190.9 kB / 21.4 MB, free: 1.52 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.399/1.399, allocations: 225.6 MB / 249.8 MB, free: 3.484 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.00144/0.00144, allocations: 55.91 kB / 366.8 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09496, allocations: 52.13 MB / 418.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003311/0.09827, allocations: 2.125 MB / 421.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.1004, allocations: 1.025 MB / 422.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.872e-05/0.1005, allocations: 7.938 kB / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1006, allocations: 35.66 kB / 422.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.1008, allocations: 63.5 kB / 422.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.1011, allocations: 119.9 kB / 422.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004654/0.1016, allocations: 387.1 kB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.1018, allocations: 85.27 kB / 422.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.1028, allocations: 0.9631 MB / 423.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1031, allocations: 207.2 kB / 423.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.849e-05/0.1031, allocations: 36 kB / 424 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.34e-05/0.1032, allocations: 39.94 kB / 424 MB, free: 7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.1034, allocations: 167.3 kB / 424.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.1037, allocations: 278.1 kB / 424.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009341/0.1046, allocations: 0.9766 MB / 425.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1046, allocations: 0 / 425.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1046, allocations: 0 / 425.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1046, allocations: 0 / 425.4 MB, free: 5.582 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.001289/0.1059, allocations: 1.146 MB / 426.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.106, allocations: 11.89 kB / 426.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.1061, allocations: 88.42 kB / 426.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.1066, allocations: 440.8 kB / 427.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.1066, allocations: 16.38 kB / 427.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.1067, allocations: 24.31 kB / 427.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.1073, allocations: 301.7 kB / 427.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1073, allocations: 0 / 427.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.1074, allocations: 8 kB / 427.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1074, allocations: 4 kB / 427.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.1078, allocations: 204.4 kB / 427.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1091, allocations: 0.8941 MB / 428.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004423/0.1096, allocations: 174.5 kB / 428.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.1099, allocations: 116.8 kB / 428.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.1099, allocations: 96 / 428.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006173/0.1105, allocations: 389.9 kB / 429.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.398e-06/0.1105, allocations: 7.922 kB / 429.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001417/0.1119, allocations: 0.7505 MB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.1121, allocations: 174.2 kB / 430.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.1133, allocations: 0.9961 MB / 431.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.745e-05/0.1134, allocations: 37.7 kB / 431.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1135, allocations: 153.9 kB / 431.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.816e-05/0.1136, allocations: 55.62 kB / 431.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.1138, allocations: 173.3 kB / 431.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.114, allocations: 338.8 kB / 431.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.1143, allocations: 127.9 kB / 432 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.1146, allocations: 164.2 kB / 432.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006384/0.1152, allocations: 477.7 kB / 432.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1152, allocations: 0 / 432.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001013/0.1163, allocations: 0.5859 MB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.1164, allocations: 134.8 kB / 433.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1164, allocations: 3.984 kB / 433.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1164, allocations: 0 / 433.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.1165, allocations: 15.98 kB / 433.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.1165, allocations: 4 kB / 433.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.1167, allocations: 32.11 kB / 433.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.1168, allocations: 111.9 kB / 433.5 MB, free: 13.04 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.0006125/0.1174, allocations: 0.5258 MB / 434 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1175, allocations: 83.48 kB / 434.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.1177, allocations: 130.4 kB / 434.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1177, allocations: 3.984 kB / 434.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1178, allocations: 4 kB / 434.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1178, allocations: 0 / 434.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007549/0.1185, allocations: 0.6219 MB / 434.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1185, allocations: 3.984 kB / 434.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-05/0.1186, allocations: 8 kB / 434.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1186, allocations: 0 / 434.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.1186, allocations: 23.98 kB / 434.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1186, allocations: 0 / 434.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1186, allocations: 0 / 434.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.1198, allocations: 0.7248 MB / 435.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006644/0.1204, allocations: 0.4961 MB / 436.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-05/0.1205, allocations: 20 kB / 436.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.1207, allocations: 15.98 kB / 436.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.1209, allocations: 51.95 kB / 436.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.121, allocations: 115.9 kB / 436.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009887/0.122, allocations: 0.733 MB / 437.1 MB, free: 9.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.122, allocations: 4 kB / 437.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.1223, allocations: 91.89 kB / 437.2 MB, free: 9.25 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.0001771/0.1225, allocations: 142.6 kB / 437.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008956/0.1234, allocations: 0.5443 MB / 437.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1234, allocations: 0 / 437.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005037/0.1239, allocations: 397.5 kB / 438.2 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008243/0.1247, allocations: 200 kB / 438.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.1269, allocations: 1.419 MB / 439.8 MB, free: 6.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007423/0.1277, allocations: 0.9674 MB / 440.8 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.1279, allocations: 91.23 kB / 440.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1279, allocations: 4 kB / 440.9 MB, free: 5.34 MB / 366.1 MB Notification: Performance of Templates: time 0.1685/0.2965, allocations: 5.435 MB / 446.3 MB, free: 30.31 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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.646469333907589]