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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001183/0.001183, allocations: 110.7 kB / 18.41 MB, free: 4.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 200.6 kB / 19.35 MB, free: 3.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 56.94 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1071, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00363/0.1107, allocations: 2.112 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.113, allocations: 1.056 MB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.1132, allocations: 3.938 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.1134, allocations: 35.66 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.1136, allocations: 51.52 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.114, allocations: 127.9 kB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000589/0.1146, allocations: 411 kB / 362.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.1149, allocations: 111 kB / 362.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009451/0.1158, allocations: 0.9358 MB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.1162, allocations: 203.2 kB / 363.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1163, allocations: 32 kB / 364 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.7e-05/0.1164, allocations: 36 kB / 364 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000195/0.1166, allocations: 163.3 kB / 364.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003157/0.1169, allocations: 278.1 kB / 364.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009228/0.1178, allocations: 0.9733 MB / 365.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1178, allocations: 4 kB / 365.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.1179, allocations: 3.984 kB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.1179, allocations: 3.938 kB / 365.4 MB, free: 6.797 MB / 302.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.001585/0.1195, allocations: 1.115 MB / 366.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1195, allocations: 8.031 kB / 366.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.1197, allocations: 80 kB / 366.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005281/0.1202, allocations: 440 kB / 367 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.1202, allocations: 16.38 kB / 367.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.1203, allocations: 24.36 kB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.1209, allocations: 305.5 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1209, allocations: 7.922 kB / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.121, allocations: 12 kB / 367.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.121, allocations: 4 kB / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.1214, allocations: 203.9 kB / 367.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.123, allocations: 0.894 MB / 368.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004705/0.1235, allocations: 214.5 kB / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.1238, allocations: 160.8 kB / 368.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.1238, allocations: 0 / 368.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006287/0.1244, allocations: 385.8 kB / 369.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.1245, allocations: 4 kB / 369.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001347/0.1258, allocations: 0.7335 MB / 370 MB, free: 1.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1259, allocations: 174.2 kB / 370.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.1273, allocations: 1 MB / 371.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.1274, allocations: 41.7 kB / 371.2 MB, free: 0.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1275, allocations: 149.8 kB / 371.3 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.967e-05/0.1276, allocations: 55.31 kB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.1278, allocations: 169 kB / 371.6 MB, free: 340 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1656/0.2933, allocations: 338.2 kB / 371.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.2939, allocations: 119.2 kB / 372 MB, free: 20.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/0.2943, allocations: 163 kB / 372.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006186/0.2949, allocations: 483.4 kB / 372.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.2949, allocations: 1.094 kB / 372.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001009/0.2959, allocations: 0.578 MB / 373.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.145e-05/0.296, allocations: 134.9 kB / 373.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.2961, allocations: 2.547 kB / 373.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.2961, allocations: 2.031 kB / 373.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.2962, allocations: 15.66 kB / 373.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2962, allocations: 5.969 kB / 373.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.2965, allocations: 20.89 kB / 373.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.2966, allocations: 110.4 kB / 373.5 MB, free: 19.46 MB / 302.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.0007229/0.2973, allocations: 0.5297 MB / 374 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.2975, allocations: 79.02 kB / 374.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.2978, allocations: 133.7 kB / 374.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2978, allocations: 3.469 kB / 374.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.2978, allocations: 3.938 kB / 374.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2978, allocations: 1.562 kB / 374.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007853/0.2986, allocations: 0.6237 MB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2986, allocations: 1.656 kB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.648e-05/0.2987, allocations: 12.94 kB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.2987, allocations: 0.9688 kB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.521e-05/0.2988, allocations: 29.58 kB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2988, allocations: 2.875 kB / 374.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2988, allocations: 3.938 kB / 374.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.3, allocations: 0.7024 MB / 375.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007254/0.3007, allocations: 0.498 MB / 376.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.3008, allocations: 24.08 kB / 376.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.301, allocations: 19.08 kB / 376.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.3012, allocations: 50.03 kB / 376.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.3013, allocations: 118.9 kB / 376.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.3023, allocations: 0.7297 MB / 377.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3023, allocations: 0 / 377.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.3028, allocations: 88.42 kB / 377.1 MB, free: 17.7 MB / 302.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.0001704/0.303, allocations: 136.9 kB / 377.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008714/0.3038, allocations: 0.6552 MB / 377.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3038, allocations: 0 / 377.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.3043, allocations: 0.5341 MB / 378.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008199/0.3052, allocations: 205.2 kB / 378.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.3074, allocations: 1.318 MB / 380 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005761/0.308, allocations: 0.9637 MB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004073/0.3084, allocations: 165.8 kB / 381.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3085, allocations: 74.67 kB / 381.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3086, allocations: 0 / 381.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Templates: time 0.01501/0.3236, allocations: 7.72 MB / 388.9 MB, free: 12.96 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches