Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001566/0.001566, allocations: 112.8 kB / 19.17 MB, free: 3.871 MB / 14.72 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.001777/0.001777, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.531/1.531, allocations: 230.4 MB / 255.4 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.83 kB / 374.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1146, allocations: 53.32 MB / 428.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003583/0.1182, allocations: 2.136 MB / 430.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002323/0.1205, allocations: 1.049 MB / 431.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1206, allocations: 4 kB / 431.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.1208, allocations: 43.64 kB / 431.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.121, allocations: 59.5 kB / 431.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.1214, allocations: 123.8 kB / 431.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004971/0.1219, allocations: 391.1 kB / 431.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1221, allocations: 83.09 kB / 431.9 MB, free: 464 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2256/0.3477, allocations: 0.9575 MB / 432.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.348, allocations: 202.2 kB / 433.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.3481, allocations: 33.56 kB / 433.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3482, allocations: 34.75 kB / 433.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.3484, allocations: 167.6 kB / 433.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.3487, allocations: 286.3 kB / 433.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008399/0.3495, allocations: 0.9805 MB / 434.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3495, allocations: 0 / 434.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3495, allocations: 0 / 434.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.3495, allocations: 0.9688 kB / 434.6 MB, free: 8.195 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.001198/0.3507, allocations: 1.139 MB / 435.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3508, allocations: 9.781 kB / 435.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.3509, allocations: 83.58 kB / 435.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.3514, allocations: 441.4 kB / 436.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.3514, allocations: 17.72 kB / 436.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.151e-05/0.3515, allocations: 19.81 kB / 436.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006622/0.3521, allocations: 300.1 kB / 436.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3521, allocations: 5.094 kB / 436.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.653e-05/0.3522, allocations: 12.2 kB / 436.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3522, allocations: 3.406 kB / 436.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004615/0.3526, allocations: 208 kB / 436.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.354, allocations: 0.8932 MB / 437.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.3544, allocations: 172.9 kB / 437.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.3547, allocations: 121.4 kB / 438 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.3547, allocations: 4.969 kB / 438 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006562/0.3554, allocations: 390 kB / 438.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.154e-06/0.3554, allocations: 0.9062 kB / 438.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001386/0.3568, allocations: 0.7376 MB / 439.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.3569, allocations: 178.5 kB / 439.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.3582, allocations: 1.002 MB / 440.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.643e-05/0.3582, allocations: 38.48 kB / 440.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.3583, allocations: 156.4 kB / 440.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.3584, allocations: 63.62 kB / 440.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/0.3586, allocations: 169.1 kB / 440.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.629e-05/0.3587, allocations: 337.8 kB / 441 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.359, allocations: 121.5 kB / 441.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.3593, allocations: 166.8 kB / 441.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005029/0.3598, allocations: 478.7 kB / 441.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3598, allocations: 0 / 441.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009327/0.3607, allocations: 0.582 MB / 442.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.3e-05/0.3608, allocations: 136.4 kB / 442.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3608, allocations: 1.219 kB / 442.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.3608, allocations: 2.312 kB / 442.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.063e-05/0.3609, allocations: 22.53 kB / 442.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3609, allocations: 1.156 kB / 442.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.3611, allocations: 24.36 kB / 442.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001527/0.3613, allocations: 113.5 kB / 442.6 MB, free: 4.148 MB / 350.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.000636/0.3619, allocations: 0.5366 MB / 443.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.362, allocations: 81.03 kB / 443.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.3622, allocations: 132 kB / 443.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3622, allocations: 1.219 kB / 443.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3622, allocations: 1.156 kB / 443.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3622, allocations: 0.6562 kB / 443.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007272/0.3629, allocations: 0.6281 MB / 444 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3629, allocations: 0 / 444 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.363, allocations: 11.17 kB / 444 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.363, allocations: 6.375 kB / 444 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.3631, allocations: 26.69 kB / 444.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3631, allocations: 2.625 kB / 444.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3631, allocations: 0 / 444.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.3641, allocations: 0.7155 MB / 444.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.3647, allocations: 0.4967 MB / 445.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.3648, allocations: 21.47 kB / 445.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.365, allocations: 14.61 kB / 445.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.3651, allocations: 51.33 kB / 445.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.3653, allocations: 114.1 kB / 445.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009128/0.3662, allocations: 0.7253 MB / 446.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3662, allocations: 4 kB / 446.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.3666, allocations: 90.78 kB / 446.3 MB, free: 2.105 MB / 350.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.0001753/0.3667, allocations: 133.1 kB / 446.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008044/0.3676, allocations: 0.5511 MB / 447 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3676, allocations: 1.156 kB / 447 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.368, allocations: 398.5 kB / 447.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008811/0.3688, allocations: 199.4 kB / 447.6 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.371, allocations: 1.413 MB / 449 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.3716, allocations: 0.964 MB / 449.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.3719, allocations: 89 kB / 450 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3719, allocations: 4 kB / 450 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Templates: time 0.009554/0.3815, allocations: 5.444 MB / 455.5 MB, free: 14.44 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.05877580307424]