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.001715/0.001715, allocations: 112.8 kB / 21.93 MB, free: 5.219 MB / 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.002001/0.002001, allocations: 213.5 kB / 25.22 MB, free: 3.027 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.615/1.615, allocations: 207.7 MB / 236.1 MB, free: 9.812 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.00318/0.00318, allocations: 57.48 kB / 348.4 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3184, allocations: 49.16 MB / 397.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002756/0.3211, allocations: 2 MB / 399.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.323, allocations: 1.018 MB / 400.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.874e-05/0.3231, allocations: 7.188 kB / 400.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.3233, allocations: 37.27 kB / 400.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.3234, allocations: 58.95 kB / 400.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.3238, allocations: 134.5 kB / 400.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.3241, allocations: 389.2 kB / 401.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.3243, allocations: 80.78 kB / 401.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009744/0.3253, allocations: 0.97 MB / 402.3 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.3255, allocations: 194 kB / 402.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-05/0.3256, allocations: 34.19 kB / 402.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.547e-05/0.3257, allocations: 38.84 kB / 402.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.3258, allocations: 164.2 kB / 402.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.326, allocations: 200.3 kB / 402.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009086/0.3269, allocations: 0.9873 MB / 403.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3269, allocations: 0 / 403.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3269, allocations: 5 kB / 403.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.3269, allocations: 0 / 403.9 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.001155/0.3281, allocations: 1.067 MB / 405 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.3281, allocations: 14.45 kB / 405 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.3282, allocations: 83.02 kB / 405 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004317/0.3287, allocations: 379.4 kB / 405.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.3287, allocations: 20.69 kB / 405.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.3287, allocations: 18.03 kB / 405.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006004/0.3293, allocations: 426.7 kB / 405.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3294, allocations: 0 / 405.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/0.3294, allocations: 9.688 kB / 405.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3294, allocations: 3.25 kB / 405.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004381/0.3298, allocations: 341.8 kB / 406.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.331, allocations: 0.7498 MB / 407 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.3314, allocations: 312.8 kB / 407.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/0.3317, allocations: 248 kB / 407.5 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3317, allocations: 1.375 kB / 407.5 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005658/0.3323, allocations: 0.5094 MB / 408 MB, free: 3.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3323, allocations: 0 / 408 MB, free: 3.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001266/0.3336, allocations: 0.991 MB / 409 MB, free: 2.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.3336, allocations: 176.8 kB / 409.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.3347, allocations: 1.006 MB / 410.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.3348, allocations: 32.02 kB / 410.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.502e-05/0.3348, allocations: 155.1 kB / 410.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.131e-05/0.3349, allocations: 67.55 kB / 410.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.3351, allocations: 163.8 kB / 410.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.3352, allocations: 337.5 kB / 410.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.3354, allocations: 255.8 kB / 411.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.3357, allocations: 301.9 kB / 411.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.3362, allocations: 493.9 kB / 412 MB, free: 332 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3362, allocations: 1.188 kB / 412 MB, free: 332 kB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009437/0.3371, allocations: 0.7278 MB / 412.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.3372, allocations: 141.5 kB / 412.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3372, allocations: 1.469 kB / 412.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3372, allocations: 1.406 kB / 412.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.524e-05/0.3373, allocations: 18.48 kB / 412.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3373, allocations: 2.344 kB / 412.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.3376, allocations: 24.77 kB / 412.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.3377, allocations: 111.1 kB / 413 MB, free: 15.64 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.0006416/0.3383, allocations: 0.5372 MB / 413.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3384, allocations: 83.89 kB / 413.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.3387, allocations: 128.3 kB / 413.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.3387, allocations: 1.375 kB / 413.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3387, allocations: 3.984 kB / 413.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3387, allocations: 3.938 kB / 413.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007061/0.3394, allocations: 0.4998 MB / 414.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3394, allocations: 0 / 414.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.234e-05/0.3394, allocations: 9.906 kB / 414.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3394, allocations: 4 kB / 414.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.937e-05/0.3395, allocations: 26.7 kB / 414.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3395, allocations: 1.469 kB / 414.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3395, allocations: 48 / 414.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.3407, allocations: 0.8497 MB / 415.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000915/0.3416, allocations: 0.4993 MB / 415.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.3417, allocations: 20.12 kB / 415.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.3419, allocations: 16.11 kB / 415.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.342, allocations: 50.7 kB / 415.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.3421, allocations: 119 kB / 415.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.3431, allocations: 0.7265 MB / 416.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3431, allocations: 0 / 416.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000376/0.3435, allocations: 89.83 kB / 416.6 MB, free: 13.21 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.0001722/0.3437, allocations: 130.9 kB / 416.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.3448, allocations: 0.8184 MB / 417.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3448, allocations: 0 / 417.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005876/0.3453, allocations: 0.5252 MB / 418.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008093/0.3462, allocations: 204.6 kB / 418.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.3485, allocations: 1.544 MB / 419.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.349, allocations: 368.1 kB / 420.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.3493, allocations: 95.02 kB / 420.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3493, allocations: 0 / 420.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Templates: time 0.008586/0.3579, allocations: 5.473 MB / 425.8 MB, free: 5.938 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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: 8.304422015324235]