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.001442/0.001442, allocations: 92.62 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001512/0.001512, allocations: 149.4 kB / 24.25 MB, free: 180 kB / 18.57 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.435/1.435, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 1.763e-06/1.763e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.826e-05, allocations: 6.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003969/0.003997, allocations: 1.997 MB / 269.3 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00299/0.006987, allocations: 0.9783 MB / 270.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.007332, allocations: 7.938 kB / 270.3 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003569/0.007689, allocations: 43.58 kB / 270.4 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003666/0.008056, allocations: 55.52 kB / 270.4 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007382/0.008794, allocations: 135.7 kB / 270.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007742/0.009568, allocations: 403 kB / 270.9 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.009819, allocations: 63.59 kB / 271 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.0113, allocations: 1.033 MB / 272 MB, free: 2 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000368/0.01166, allocations: 175.5 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.01178, allocations: 36 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-05/0.01188, allocations: 32 kB / 272.3 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000227/0.0121, allocations: 171.3 kB / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.01236, allocations: 147.4 kB / 272.6 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.01361, allocations: 0.9813 MB / 273.6 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.01362, allocations: 0 / 273.6 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.01362, allocations: 4 kB / 273.6 MB, free: 472 kB / 250.7 MB Notification: Performance of Transformations before backend: time 2.718e-05/0.01365, allocations: 0 / 273.6 MB, free: 472 kB / 250.7 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.002082/0.01573, allocations: 1.063 MB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.01578, allocations: 12.03 kB / 274.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002813/0.01606, allocations: 104.4 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006341/0.01669, allocations: 370.2 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.01674, allocations: 16.38 kB / 275.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.414e-05/0.01681, allocations: 24.31 kB / 275.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.01781, allocations: 432.6 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.01782, allocations: 192 / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.01788, allocations: 8.375 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.0179, allocations: 15.92 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000649/0.01855, allocations: 338.7 kB / 275.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.02038, allocations: 0.7573 MB / 276.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.02102, allocations: 309.3 kB / 277 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/0.02143, allocations: 247.6 kB / 277.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.02145, allocations: 0 / 277.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008524/0.0223, allocations: 0.5119 MB / 277.7 MB, free: 12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.02231, allocations: 4 kB / 277.7 MB, free: 12 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001959/0.02427, allocations: 1.028 MB / 278.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.02443, allocations: 178.2 kB / 278.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.02658, allocations: 0.9961 MB / 279.9 MB, free: 9.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.047e-05/0.02665, allocations: 37.7 kB / 280 MB, free: 9.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.02688, allocations: 157.9 kB / 280.1 MB, free: 9.473 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.027, allocations: 59.53 kB / 280.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004062/0.0274, allocations: 161.3 kB / 280.3 MB, free: 9.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002624/0.02767, allocations: 338.8 kB / 280.7 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.02814, allocations: 250.8 kB / 280.9 MB, free: 8.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005032/0.02864, allocations: 295 kB / 281.2 MB, free: 8.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.02946, allocations: 0.4978 MB / 281.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.02946, allocations: 0 / 281.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001574/0.03104, allocations: 0.7371 MB / 282.4 MB, free: 6.957 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.03118, allocations: 142.8 kB / 282.6 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.0312, allocations: 0 / 282.6 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.03123, allocations: 4 kB / 282.6 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.03134, allocations: 16 kB / 282.6 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.03135, allocations: 3.938 kB / 282.6 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.03166, allocations: 24 kB / 282.6 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/0.03183, allocations: 115.9 kB / 282.7 MB, free: 6.633 MB / 266.7 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.0009845/0.03281, allocations: 0.5262 MB / 283.3 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.03303, allocations: 99.47 kB / 283.4 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000335/0.03336, allocations: 130.5 kB / 283.5 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.03337, allocations: 8.031 kB / 283.5 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.03338, allocations: 4 kB / 283.5 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.03338, allocations: 0 / 283.5 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.03444, allocations: 0.5005 MB / 284 MB, free: 5.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.03445, allocations: 4.125 kB / 284 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.458e-05/0.0345, allocations: 15.98 kB / 284 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.03451, allocations: 3.938 kB / 284 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-05/0.03458, allocations: 23.98 kB / 284 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.03458, allocations: 0 / 284 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.03458, allocations: 0 / 284 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.03609, allocations: 0.8534 MB / 284.9 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009708/0.03706, allocations: 0.4931 MB / 285.4 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.03719, allocations: 23.94 kB / 285.4 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.0374, allocations: 19.98 kB / 285.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.0376, allocations: 51.94 kB / 285.5 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.03775, allocations: 115.9 kB / 285.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001297/0.03905, allocations: 0.729 MB / 286.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03905, allocations: 0 / 286.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005133/0.03956, allocations: 95.89 kB / 286.4 MB, free: 2.805 MB / 266.7 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.000263/0.03982, allocations: 135.2 kB / 286.6 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.04126, allocations: 0.8153 MB / 287.4 MB, free: 1.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.04126, allocations: 0 / 287.4 MB, free: 1.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007775/0.04204, allocations: 0.5199 MB / 287.9 MB, free: 1.152 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.04311, allocations: 235.5 kB / 288.1 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.04636, allocations: 1.507 MB / 289.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/0.04702, allocations: 369 kB / 290 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.04746, allocations: 161.2 kB / 290.1 MB, free: 14.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.04768, allocations: 80.34 kB / 290.2 MB, free: 14.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.934e-06/0.04768, allocations: 0 / 290.2 MB, free: 14.75 MB / 282.7 MB Notification: Performance of Templates: time 0.0166/0.06429, allocations: 8.279 MB / 298.5 MB, free: 6.586 MB / 282.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/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.336484832921997]