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.001599/0.001599, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00169/0.00169, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 60.25 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 50.54 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003162/0.1062, allocations: 2.161 MB / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1081, allocations: 1.041 MB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.98e-05/0.1082, allocations: 4 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.1084, allocations: 27.72 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.1085, allocations: 43.66 kB / 360.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.1088, allocations: 107.9 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.1092, allocations: 411.1 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.1094, allocations: 115 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007755/0.1102, allocations: 0.9435 MB / 361.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.1104, allocations: 199.2 kB / 362 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.723e-05/0.1105, allocations: 32 kB / 362 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.1106, allocations: 40 kB / 362.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.1108, allocations: 163.4 kB / 362.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.111, allocations: 282.1 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006869/0.1117, allocations: 0.9619 MB / 363.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1117, allocations: 0 / 363.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1117, allocations: 0 / 363.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1117, allocations: 0 / 363.5 MB, free: 7.867 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.001073/0.1128, allocations: 1.126 MB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1128, allocations: 12.03 kB / 364.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.1129, allocations: 80 kB / 364.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.1133, allocations: 432 kB / 365.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.1134, allocations: 12.38 kB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.1134, allocations: 24.31 kB / 365.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006652/0.1141, allocations: 305.5 kB / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1141, allocations: 0 / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.1142, allocations: 8 kB / 365.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1142, allocations: 4 kB / 365.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.1146, allocations: 207.9 kB / 365.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.1158, allocations: 0.8901 MB / 366.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.1162, allocations: 222.4 kB / 366.8 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.1165, allocations: 164.8 kB / 366.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.1166, allocations: 0 / 366.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005543/0.1171, allocations: 377.8 kB / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1171, allocations: 0 / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001291/0.1184, allocations: 0.7405 MB / 368 MB, free: 3.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.739e-05/0.1185, allocations: 178.2 kB / 368.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.1197, allocations: 1 MB / 369.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.1197, allocations: 33.7 kB / 369.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.1199, allocations: 157.8 kB / 369.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.345e-05/0.1199, allocations: 59.25 kB / 369.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.1201, allocations: 169 kB / 369.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1203, allocations: 338.8 kB / 369.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.1205, allocations: 120 kB / 370.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002793/0.1208, allocations: 168.2 kB / 370.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/0.1214, allocations: 469.9 kB / 370.7 MB, free: 244 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1214, allocations: 3.938 kB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.1514/0.2728, allocations: 0.5877 MB / 371.3 MB, free: 20.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.193e-05/0.2729, allocations: 134.6 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2729, allocations: 3.219 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.273, allocations: 3.094 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.092e-05/0.2731, allocations: 13.28 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2731, allocations: 5.812 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.2734, allocations: 34.91 kB / 371.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.2735, allocations: 113.7 kB / 371.6 MB, free: 20.07 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.0005861/0.2741, allocations: 0.5313 MB / 372.1 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.957e-05/0.2742, allocations: 76.64 kB / 372.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000195/0.2744, allocations: 131.7 kB / 372.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.2744, allocations: 2.844 kB / 372.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2745, allocations: 0.7969 kB / 372.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2745, allocations: 1.094 kB / 372.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006467/0.2751, allocations: 0.6301 MB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2751, allocations: 0.5312 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.899e-05/0.2752, allocations: 14.33 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2752, allocations: 0.6875 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.2753, allocations: 27.61 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2753, allocations: 3.375 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2753, allocations: 1.047 kB / 373 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.2763, allocations: 0.7035 MB / 373.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005522/0.2769, allocations: 499.2 kB / 374.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.277, allocations: 25.17 kB / 374.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2772, allocations: 29.98 kB / 374.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.2774, allocations: 54.72 kB / 374.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.2775, allocations: 115.7 kB / 374.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000825/0.2783, allocations: 0.7286 MB / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2784, allocations: 0 / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.2787, allocations: 89.45 kB / 375.2 MB, free: 18.56 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.0001486/0.2789, allocations: 134.7 kB / 375.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00079/0.2797, allocations: 0.6582 MB / 376 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2797, allocations: 2.406 kB / 376 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.2801, allocations: 0.5273 MB / 376.5 MB, free: 17.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008348/0.281, allocations: 217.5 kB / 376.8 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.2829, allocations: 1.566 MB / 378.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.2834, allocations: 0.9633 MB / 379.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002935/0.2837, allocations: 159.7 kB / 379.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.2839, allocations: 76.36 kB / 379.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2839, allocations: 0 / 379.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01304/0.2969, allocations: 7.625 MB / 387.1 MB, free: 13.71 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches