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.001378/0.001378, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001306/0.001306, allocations: 162.2 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9642/0.9642, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] 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 2.876e-06/2.876e-06, allocations: 4 kB / 274.1 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.427e-05/2.714e-05, allocations: 3.859 kB / 274.1 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003003/0.00303, allocations: 2.07 MB / 276.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.005148, allocations: 1.012 MB / 277.2 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.005299, allocations: 7.938 kB / 277.2 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.00548, allocations: 35.64 kB / 277.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.005612, allocations: 64.44 kB / 277.3 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.006051, allocations: 128.4 kB / 277.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004969/0.006548, allocations: 405.1 kB / 277.8 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.006729, allocations: 67.62 kB / 277.9 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.007732, allocations: 1.026 MB / 278.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.007976, allocations: 179.5 kB / 279.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.979e-05/0.008046, allocations: 36 kB / 279.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.526e-05/0.008101, allocations: 33.28 kB / 279.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.008261, allocations: 171.3 kB / 279.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.008424, allocations: 143.4 kB / 279.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005742/0.008998, allocations: 0.6539 MB / 280.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.009001, allocations: 1.031 kB / 280.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.009002, allocations: 0 / 280.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.00901, allocations: 0 / 280.1 MB, free: 14.36 MB / 266.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.001143/0.01015, allocations: 1.229 MB / 281.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.01019, allocations: 12.03 kB / 281.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.01031, allocations: 104.4 kB / 281.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.01061, allocations: 365.1 kB / 281.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.01063, allocations: 12.38 kB / 281.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.01067, allocations: 24.31 kB / 281.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.01105, allocations: 365.5 kB / 282.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.01106, allocations: 4.125 kB / 282.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.01109, allocations: 16.36 kB / 282.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.01109, allocations: 7.938 kB / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.01129, allocations: 218.7 kB / 282.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008077/0.0121, allocations: 0.718 MB / 283.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.01237, allocations: 269.7 kB / 283.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.0125, allocations: 198.4 kB / 283.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.01252, allocations: 4 kB / 283.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.01282, allocations: 478.3 kB / 284.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.273e-06/0.01282, allocations: 8 kB / 284.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000756/0.01357, allocations: 0.8697 MB / 285 MB, free: 9.109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.01364, allocations: 182.2 kB / 285.2 MB, free: 8.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009033/0.01455, allocations: 0.9007 MB / 286.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.01458, allocations: 37.7 kB / 286.1 MB, free: 7.938 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.895e-05/0.01467, allocations: 204.6 kB / 286.3 MB, free: 7.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.01472, allocations: 63.5 kB / 286.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.01486, allocations: 167 kB / 286.5 MB, free: 7.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.01498, allocations: 0.5157 MB / 287 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.01513, allocations: 198.8 kB / 287.2 MB, free: 6.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.01528, allocations: 241.2 kB / 287.5 MB, free: 6.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.01555, allocations: 427.8 kB / 287.9 MB, free: 5.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01555, allocations: 0 / 287.9 MB, free: 5.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005468/0.01609, allocations: 0.6366 MB / 288.5 MB, free: 5.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.822e-05/0.01616, allocations: 141.4 kB / 288.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01617, allocations: 4.188 kB / 288.7 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.01618, allocations: 4 kB / 288.7 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.128e-05/0.01623, allocations: 19.98 kB / 288.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.01623, allocations: 3.938 kB / 288.7 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.01636, allocations: 31.88 kB / 288.7 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-05/0.01644, allocations: 107.9 kB / 288.8 MB, free: 4.961 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.0004001/0.01684, allocations: 0.525 MB / 289.3 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-05/0.01693, allocations: 95.47 kB / 289.4 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.01708, allocations: 106.5 kB / 289.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01708, allocations: 4 kB / 289.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.01708, allocations: 0 / 289.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.01709, allocations: 3.984 kB / 289.6 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.01753, allocations: 440.6 kB / 290 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01754, allocations: 0 / 290 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.049e-05/0.01757, allocations: 8 kB / 290 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.01757, allocations: 4 kB / 290 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.0176, allocations: 27.98 kB / 290 MB, free: 3.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.01761, allocations: 7.938 kB / 290 MB, free: 3.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01761, allocations: 48 / 290 MB, free: 3.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006533/0.01826, allocations: 0.784 MB / 290.8 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/0.01877, allocations: 460.8 kB / 291.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.511e-05/0.01883, allocations: 24 kB / 291.3 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.03e-05/0.01892, allocations: 19.92 kB / 291.3 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.01901, allocations: 31.97 kB / 291.3 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.656e-05/0.01909, allocations: 119.9 kB / 291.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004182/0.0195, allocations: 498.5 kB / 291.9 MB, free: 1.703 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0195, allocations: 3.938 kB / 291.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002509/0.01976, allocations: 95.95 kB / 292 MB, free: 1.605 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.0001208/0.01988, allocations: 127.2 kB / 292.2 MB, free: 1.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.02035, allocations: 0.722 MB / 292.9 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.02036, allocations: 0 / 292.9 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.02062, allocations: 494.6 kB / 293.4 MB, free: 92 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.02112, allocations: 231.8 kB / 293.6 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.02246, allocations: 1.385 MB / 295 MB, free: 14.44 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.02257, allocations: 147.7 kB / 295.1 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.0228, allocations: 161.2 kB / 295.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.02322, allocations: 282 kB / 295.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02322, allocations: 0 / 295.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of Templates: time 0.01021/0.03343, allocations: 8.263 MB / 303.8 MB, free: 5.691 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8639232320711017]