Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002373/0.002373, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.003202/0.003202, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.777/1.777, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 60.2 kB / 347.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2904, allocations: 49.16 MB / 396.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002914/0.2933, allocations: 1.994 MB / 398.8 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.2954, allocations: 1.023 MB / 399.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2955, allocations: 6.688 kB / 399.9 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.2957, allocations: 37.59 kB / 399.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001079/0.2958, allocations: 57.8 kB / 400 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004044/0.2962, allocations: 134.7 kB / 400.1 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.2966, allocations: 389.8 kB / 400.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.2968, allocations: 80.02 kB / 400.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.2979, allocations: 0.9662 MB / 401.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.2981, allocations: 195 kB / 401.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-05/0.2982, allocations: 33.25 kB / 401.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.327e-05/0.2983, allocations: 35.09 kB / 401.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2985, allocations: 168.7 kB / 401.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2986, allocations: 199.9 kB / 402.1 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009694/0.2996, allocations: 0.9844 MB / 403.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2996, allocations: 3.938 kB / 403.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2996, allocations: 3.938 kB / 403.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.2996, allocations: 0 / 403.1 MB, free: 6.238 MB / 318.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.001166/0.3008, allocations: 1.067 MB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3008, allocations: 13.55 kB / 404.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.3009, allocations: 85.2 kB / 404.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004347/0.3014, allocations: 378.2 kB / 404.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.3014, allocations: 19.22 kB / 404.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/0.3015, allocations: 19.25 kB / 404.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.3021, allocations: 430.8 kB / 405.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3021, allocations: 0 / 405.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.3021, allocations: 14.42 kB / 405.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3022, allocations: 2.75 kB / 405.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004647/0.3026, allocations: 338.6 kB / 405.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.304, allocations: 0.7449 MB / 406.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.3045, allocations: 312.8 kB / 406.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.3048, allocations: 244.1 kB / 406.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.3048, allocations: 9.094 kB / 406.8 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006478/0.3054, allocations: 0.5058 MB / 407.3 MB, free: 3.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.3054, allocations: 0 / 407.3 MB, free: 3.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001366/0.3068, allocations: 0.9959 MB / 408.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.3069, allocations: 175 kB / 408.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.3081, allocations: 1.007 MB / 409.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.3082, allocations: 31.92 kB / 409.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.205e-05/0.3082, allocations: 155.8 kB / 409.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.624e-05/0.3083, allocations: 63.61 kB / 409.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.3085, allocations: 163.5 kB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.3086, allocations: 342 kB / 410.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.3089, allocations: 251.2 kB / 410.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.3092, allocations: 298.2 kB / 410.7 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004979/0.3097, allocations: 0.4901 MB / 411.2 MB, free: 340 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.3097, allocations: 1.156 kB / 411.2 MB, free: 340 kB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001031/0.3107, allocations: 0.7245 MB / 411.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.3109, allocations: 140.1 kB / 412.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3109, allocations: 1.344 kB / 412.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.3109, allocations: 6.938 kB / 412.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.623e-05/0.311, allocations: 10.62 kB / 412.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.311, allocations: 5.281 kB / 412.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.3112, allocations: 25.36 kB / 412.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.3114, allocations: 114.1 kB / 412.2 MB, free: 15.65 MB / 334.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.0006641/0.312, allocations: 0.5299 MB / 412.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3121, allocations: 83.33 kB / 412.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.3124, allocations: 136.1 kB / 413 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3124, allocations: 2.25 kB / 413 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3124, allocations: 0 / 413 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3124, allocations: 96 / 413 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.3132, allocations: 0.5041 MB / 413.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3132, allocations: 0 / 413.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.585e-05/0.3132, allocations: 17.86 kB / 413.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3132, allocations: 0 / 413.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/0.3133, allocations: 28.14 kB / 413.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3133, allocations: 4 kB / 413.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3133, allocations: 0 / 413.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.3145, allocations: 0.8343 MB / 414.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/0.3154, allocations: 0.4993 MB / 414.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3155, allocations: 20.38 kB / 414.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.3157, allocations: 19.83 kB / 414.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3159, allocations: 54.16 kB / 415 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/0.316, allocations: 118.5 kB / 415.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.3172, allocations: 0.7269 MB / 415.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3172, allocations: 0 / 415.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004138/0.3176, allocations: 90.2 kB / 415.9 MB, free: 13.22 MB / 334.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.0001994/0.3178, allocations: 135.7 kB / 416 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.319, allocations: 0.8102 MB / 416.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.319, allocations: 0 / 416.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000619/0.3196, allocations: 0.5296 MB / 417.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008682/0.3205, allocations: 204.1 kB / 417.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.3228, allocations: 1.462 MB / 419 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.3233, allocations: 370.5 kB / 419.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004917/0.3238, allocations: 165.6 kB / 419.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.324, allocations: 74.47 kB / 419.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.324, allocations: 0 / 419.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Templates: time 0.01404/0.338, allocations: 8.48 MB / 428.1 MB, free: 2.859 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.228032721206546]