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.001325/0.001325, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001514/0.001514, allocations: 160.2 kB / 24.91 MB, free: 8.762 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 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.039 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 1.683e-06/1.683e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.311e-05/2.48e-05, allocations: 5.125 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002487/0.002511, allocations: 2.102 MB / 275.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.004275, allocations: 1.048 MB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.004358, allocations: 3.938 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.004546, allocations: 31.72 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.783e-05/0.004633, allocations: 59.45 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.00496, allocations: 135.8 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.005283, allocations: 410.9 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.005421, allocations: 66.27 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006552/0.006076, allocations: 0.9397 MB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.006247, allocations: 175.5 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.006298, allocations: 36 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.888e-05/0.006337, allocations: 35.94 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.006471, allocations: 163.4 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.006592, allocations: 147.4 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004315/0.007024, allocations: 0.6579 MB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.007026, allocations: 0 / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.007027, allocations: 0 / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.007032, allocations: 4 kB / 279.4 MB, free: 11 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.0007858/0.007818, allocations: 1.014 MB / 280.4 MB, free: 9.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.007852, allocations: 15.98 kB / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.007934, allocations: 64.88 kB / 280.5 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.008194, allocations: 346.3 kB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.00822, allocations: 12.38 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.008251, allocations: 20.38 kB / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.008615, allocations: 353.2 kB / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.008624, allocations: 192 / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.008648, allocations: 12.38 kB / 281.2 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.008656, allocations: 7.938 kB / 281.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.008825, allocations: 202.7 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000573/0.009398, allocations: 470.3 kB / 281.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.009621, allocations: 229.2 kB / 282.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.009741, allocations: 187.6 kB / 282.3 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.009754, allocations: 3.938 kB / 282.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/0.01003, allocations: 452.7 kB / 282.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.01003, allocations: 0 / 282.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000483/0.01051, allocations: 0.6554 MB / 283.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.01058, allocations: 182.2 kB / 283.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007372/0.01132, allocations: 0.6481 MB / 284.2 MB, free: 5.773 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.01135, allocations: 37.69 kB / 284.3 MB, free: 5.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.01141, allocations: 134.4 kB / 284.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.691e-05/0.01146, allocations: 59.5 kB / 284.5 MB, free: 5.535 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.01158, allocations: 149.3 kB / 284.6 MB, free: 5.383 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.01167, allocations: 342.8 kB / 284.9 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.01179, allocations: 178.8 kB / 285.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.01194, allocations: 223 kB / 285.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.01218, allocations: 408.5 kB / 285.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01219, allocations: 0 / 285.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003249/0.01251, allocations: 459 kB / 286.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.651e-05/0.01258, allocations: 142.7 kB / 286.3 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.01258, allocations: 4 kB / 286.3 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.01259, allocations: 0 / 286.3 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.905e-05/0.01265, allocations: 11.94 kB / 286.3 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.01266, allocations: 7.984 kB / 286.3 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.01277, allocations: 19.89 kB / 286.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-05/0.01284, allocations: 103.9 kB / 286.5 MB, free: 3.305 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.000485/0.01333, allocations: 497.8 kB / 287 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.488e-05/0.01341, allocations: 63.94 kB / 287 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.01356, allocations: 114.4 kB / 287.1 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.01357, allocations: 4 kB / 287.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.01357, allocations: 0 / 287.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.01357, allocations: 0 / 287.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.01389, allocations: 309.4 kB / 287.4 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01389, allocations: 0 / 287.4 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.023e-05/0.01393, allocations: 11.98 kB / 287.4 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.01393, allocations: 0 / 287.4 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.01396, allocations: 11.98 kB / 287.5 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.01396, allocations: 7.984 kB / 287.5 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01397, allocations: 3.938 kB / 287.5 MB, free: 2.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004138/0.01438, allocations: 0.5341 MB / 288 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003425/0.01472, allocations: 301.1 kB / 288.3 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.849e-05/0.01478, allocations: 24.12 kB / 288.3 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.01487, allocations: 15.98 kB / 288.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.01495, allocations: 31.91 kB / 288.4 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.226e-05/0.01502, allocations: 107.9 kB / 288.5 MB, free: 1.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000285/0.01531, allocations: 324.3 kB / 288.8 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.01531, allocations: 0 / 288.8 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001788/0.01549, allocations: 87.95 kB / 288.9 MB, free: 0.7617 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.0001161/0.0156, allocations: 120.3 kB / 289 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.09726/0.1129, allocations: 0.6722 MB / 289.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/0.1129, allocations: 8.875 kB / 289.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.1132, allocations: 485.8 kB / 290.1 MB, free: 25.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.1138, allocations: 205 kB / 290.3 MB, free: 25.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.1153, allocations: 1.368 MB / 291.7 MB, free: 25.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.1154, allocations: 152.3 kB / 291.9 MB, free: 25.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.1156, allocations: 159 kB / 292 MB, free: 25.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.116, allocations: 248.2 kB / 292.3 MB, free: 24.93 MB / 266.7 MB Notification: Performance of SimCode: time 1.513e-06/0.116, allocations: 1.688 kB / 292.3 MB, free: 24.93 MB / 266.7 MB Notification: Performance of Templates: time 0.009583/0.1256, allocations: 8.026 MB / 300.3 MB, free: 22.96 MB / 266.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 -s gbode -gbm=radauIIA3 -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.6931855203583837]