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.0009854/0.0009854, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.0009251/0.0009251, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9881/0.9881, allocations: 177 MB / 204.8 MB, free: 5.617 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.253e-06/1.253e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.391e-05/1.516e-05, allocations: 9.125 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00232/0.002335, allocations: 2.076 MB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.003942, allocations: 1.029 MB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.026e-05/0.004032, allocations: 3.938 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.004193, allocations: 39.64 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.004281, allocations: 55.52 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.004665, allocations: 139.7 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003297/0.004995, allocations: 399 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.005143, allocations: 67.62 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009199/0.006063, allocations: 1.029 MB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.006236, allocations: 183.5 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.006292, allocations: 32 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.298e-05/0.006345, allocations: 36 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.006461, allocations: 167.3 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.006584, allocations: 139.4 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.007054, allocations: 0.6618 MB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.007056, allocations: 4 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.007056, allocations: 0 / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.007062, allocations: 0 / 279 MB, free: 11.41 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.0008968/0.007959, allocations: 1.221 MB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.007991, allocations: 11.98 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.008097, allocations: 100.4 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.008385, allocations: 377 kB / 280.6 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.008415, allocations: 16.38 kB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.008448, allocations: 20.38 kB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/0.008857, allocations: 381.5 kB / 281.1 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.008866, allocations: 4.188 kB / 281.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.008892, allocations: 12.31 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.008901, allocations: 7.938 kB / 281.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.009129, allocations: 246.7 kB / 281.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009397/0.01007, allocations: 0.8892 MB / 282.2 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.01036, allocations: 289.7 kB / 282.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.01052, allocations: 218.4 kB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.01053, allocations: 4 kB / 282.7 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003196/0.01085, allocations: 498.5 kB / 283.2 MB, free: 6.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.352e-06/0.01085, allocations: 0 / 283.2 MB, free: 6.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008012/0.01166, allocations: 0.9205 MB / 284.1 MB, free: 5.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.01171, allocations: 178.2 kB / 284.3 MB, free: 5.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/0.01298, allocations: 1.162 MB / 285.5 MB, free: 4.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.01301, allocations: 33.7 kB / 285.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.01309, allocations: 212.6 kB / 285.7 MB, free: 4.199 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.781e-05/0.01314, allocations: 59.59 kB / 285.8 MB, free: 4.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.01327, allocations: 167 kB / 285.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.01338, allocations: 0.5079 MB / 286.4 MB, free: 3.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.01354, allocations: 210.8 kB / 286.6 MB, free: 3.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.01371, allocations: 265.2 kB / 286.9 MB, free: 2.914 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.014, allocations: 451.8 kB / 287.3 MB, free: 2.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.014, allocations: 3.938 kB / 287.3 MB, free: 2.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005267/0.01453, allocations: 0.6629 MB / 288 MB, free: 1.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.01459, allocations: 146.7 kB / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.01459, allocations: 0 / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.01461, allocations: 4 kB / 288.1 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.683e-05/0.01466, allocations: 15.94 kB / 288.2 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.01467, allocations: 0 / 288.2 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.01479, allocations: 23.92 kB / 288.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.567e-05/0.01486, allocations: 111.9 kB / 288.3 MB, free: 1.359 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.0003383/0.0152, allocations: 0.5329 MB / 288.8 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.455e-05/0.01528, allocations: 95.47 kB / 288.9 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.01539, allocations: 106.5 kB / 289 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.01539, allocations: 0 / 289 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.01539, allocations: 4 kB / 289 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.0154, allocations: 0 / 289 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005282/0.01593, allocations: 0.5937 MB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-06/0.01593, allocations: 8 kB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.442e-05/0.01595, allocations: 12 kB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.01595, allocations: 3.938 kB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.01599, allocations: 28.03 kB / 289.7 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01599, allocations: 3.938 kB / 289.7 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.01599, allocations: 3.984 kB / 289.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.01661, allocations: 0.7989 MB / 290.5 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004401/0.01705, allocations: 476.8 kB / 290.9 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.01711, allocations: 23.94 kB / 291 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.027e-05/0.01719, allocations: 15.98 kB / 291 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.01729, allocations: 47.94 kB / 291 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.048e-05/0.01736, allocations: 119.9 kB / 291.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008701/0.01823, allocations: 0.76 MB / 291.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01823, allocations: 0 / 291.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.01844, allocations: 91.94 kB / 292 MB, free: 13.5 MB / 282.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 9.425e-05/0.01853, allocations: 131.2 kB / 292.1 MB, free: 13.37 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.01903, allocations: 0.7486 MB / 292.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.01903, allocations: 0 / 292.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.01931, allocations: 0.5078 MB / 293.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.01976, allocations: 237.8 kB / 293.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.02102, allocations: 1.397 MB / 295 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.02112, allocations: 147.8 kB / 295.2 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.02132, allocations: 165.2 kB / 295.3 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.02143, allocations: 80.34 kB / 295.4 MB, free: 9.848 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02143, allocations: 0 / 295.4 MB, free: 9.848 MB / 282.7 MB Notification: Performance of Templates: time 0.008468/0.0299, allocations: 8.291 MB / 303.7 MB, free: 1.648 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: 3.0417022369802]