Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 111.4 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001219, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 55.86 kB / 300 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1049, allocations: 49.44 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003494/0.1084, allocations: 2.145 MB / 351.5 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.1107, allocations: 1.041 MB / 352.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1108, allocations: 7.938 kB / 352.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.111, allocations: 23.78 kB / 352.6 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.1111, allocations: 43.64 kB / 352.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003928/0.1115, allocations: 111.9 kB / 352.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003729/0.1119, allocations: 339.1 kB / 353.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.1122, allocations: 103.1 kB / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009811/0.1131, allocations: 0.9163 MB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.1133, allocations: 187.2 kB / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.346e-05/0.1134, allocations: 12 kB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.928e-05/0.1135, allocations: 12 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1137, allocations: 151.4 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.1139, allocations: 270 kB / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008132/0.1148, allocations: 0.9385 MB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1148, allocations: 0 / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1148, allocations: 4 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1148, allocations: 0 / 355.7 MB, free: 14.32 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.001338/0.1161, allocations: 1.126 MB / 356.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1162, allocations: 8.031 kB / 356.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.1163, allocations: 80 kB / 356.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.1168, allocations: 436 kB / 357.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.1168, allocations: 20.31 kB / 357.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.412e-05/0.1169, allocations: 20.38 kB / 357.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.1175, allocations: 297.7 kB / 357.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1176, allocations: 4 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.1176, allocations: 12 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1176, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1181, allocations: 211.8 kB / 357.9 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.1194, allocations: 0.8901 MB / 358.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.1199, allocations: 214.5 kB / 359 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.1202, allocations: 152.8 kB / 359.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.1203, allocations: 0 / 359.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000691/0.121, allocations: 390 kB / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.121, allocations: 0 / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001415/0.1224, allocations: 0.7332 MB / 360.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.1225, allocations: 178.2 kB / 360.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.1238, allocations: 0.9999 MB / 361.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.1239, allocations: 37.7 kB / 361.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.124, allocations: 149.8 kB / 361.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.519e-05/0.1241, allocations: 59.34 kB / 361.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.1243, allocations: 173 kB / 361.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1245, allocations: 338.8 kB / 362.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.1248, allocations: 123.9 kB / 362.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.1251, allocations: 164.2 kB / 362.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006482/0.1257, allocations: 481.7 kB / 362.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1257, allocations: 3.938 kB / 362.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001012/0.1268, allocations: 0.5742 MB / 363.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.1269, allocations: 130.8 kB / 363.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1269, allocations: 4 kB / 363.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1269, allocations: 0 / 363.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.967e-05/0.127, allocations: 19.92 kB / 363.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.127, allocations: 8.062 kB / 363.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.1273, allocations: 35.88 kB / 363.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.1275, allocations: 104.1 kB / 363.8 MB, free: 5.758 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.0006168/0.1281, allocations: 0.5415 MB / 364.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.689e-05/0.1282, allocations: 91.09 kB / 364.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002069/0.1284, allocations: 130.3 kB / 364.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1284, allocations: 0 / 364.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.1284, allocations: 0 / 364.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1284, allocations: 3.984 kB / 364.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.1292, allocations: 0.6297 MB / 365.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1292, allocations: 0 / 365.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.477e-05/0.1293, allocations: 15.98 kB / 365.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1293, allocations: 0 / 365.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/0.1293, allocations: 23.98 kB / 365.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1293, allocations: 0 / 365.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1293, allocations: 4 kB / 365.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.1304, allocations: 0.7056 MB / 365.9 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006005/0.1311, allocations: 499.7 kB / 366.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.1312, allocations: 20 kB / 366.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.1314, allocations: 27.88 kB / 366.4 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.1316, allocations: 47.95 kB / 366.5 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.1317, allocations: 115.9 kB / 366.6 MB, free: 2.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009314/0.1326, allocations: 0.7329 MB / 367.3 MB, free: 2.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1326, allocations: 0 / 367.3 MB, free: 2.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.133, allocations: 87.94 kB / 367.4 MB, free: 1.953 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.0001916/0.1332, allocations: 146.6 kB / 367.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008919/0.1341, allocations: 0.6536 MB / 368.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1341, allocations: 0 / 368.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.1346, allocations: 0.5288 MB / 368.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008035/0.1355, allocations: 174.3 kB / 368.9 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1904/0.3258, allocations: 1.562 MB / 370.5 MB, free: 22.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006231/0.3265, allocations: 0.9643 MB / 371.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004109/0.3269, allocations: 162.6 kB / 371.6 MB, free: 21.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.3271, allocations: 79.25 kB / 371.7 MB, free: 21.42 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3271, allocations: 0 / 371.7 MB, free: 21.42 MB / 302.1 MB Notification: Performance of Templates: time 0.01516/0.3423, allocations: 7.339 MB / 379 MB, free: 20.48 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches