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.001355/0.001356, allocations: 101 kB / 17.59 MB, free: 5.426 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.001505/0.001505, allocations: 191.3 kB / 18.51 MB, free: 4.504 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.393/1.393, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001107, allocations: 47.39 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09199, allocations: 49.45 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003712/0.09575, allocations: 2.1 MB / 352.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.09826, allocations: 1.021 MB / 353.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.0985, allocations: 0 / 353.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.09877, allocations: 35.66 kB / 353.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.09898, allocations: 51.52 kB / 353.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004929/0.09948, allocations: 127.8 kB / 354.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007394/0.1002, allocations: 407.1 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002828/0.1005, allocations: 107.1 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.1017, allocations: 0.9358 MB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.102, allocations: 199.2 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.1021, allocations: 36 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.867e-05/0.1022, allocations: 40 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.1024, allocations: 159.4 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.1027, allocations: 286.1 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009695/0.1037, allocations: 0.9619 MB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1037, allocations: 0 / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1038, allocations: 4 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.1038, allocations: 0 / 357.2 MB, free: 13.96 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.001766/0.1056, allocations: 1.118 MB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1056, allocations: 11.89 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.1058, allocations: 80 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006285/0.1064, allocations: 440 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.92e-05/0.1065, allocations: 16.38 kB / 358.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.1066, allocations: 20.38 kB / 358.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.1072, allocations: 305.7 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1072, allocations: 0 / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.1073, allocations: 8 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1073, allocations: 4 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004466/0.1078, allocations: 212.4 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1094, allocations: 0.8939 MB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004749/0.1099, allocations: 218.5 kB / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.1102, allocations: 164.8 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.1102, allocations: 0 / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006259/0.1109, allocations: 378.7 kB / 361 MB, free: 9.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 4.809e-06/0.1109, allocations: 3.984 kB / 361 MB, free: 9.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001426/0.1123, allocations: 0.741 MB / 361.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.8e-05/0.1124, allocations: 178.3 kB / 361.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.1139, allocations: 1.008 MB / 362.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.114, allocations: 33.7 kB / 363 MB, free: 7.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.1142, allocations: 153.8 kB / 363.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.291e-05/0.1143, allocations: 51.36 kB / 363.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.1146, allocations: 176.9 kB / 363.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1147, allocations: 338.8 kB / 363.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.115, allocations: 120 kB / 363.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.1153, allocations: 168.2 kB / 363.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000618/0.116, allocations: 481.6 kB / 364.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.116, allocations: 4 kB / 364.4 MB, free: 6.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009751/0.117, allocations: 0.586 MB / 365 MB, free: 5.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.1171, allocations: 130.8 kB / 365.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1171, allocations: 4 kB / 365.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1171, allocations: 0 / 365.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.1172, allocations: 15.94 kB / 365.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.1173, allocations: 0 / 365.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.1175, allocations: 23.89 kB / 365.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.1177, allocations: 111.9 kB / 365.3 MB, free: 5.383 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.0007472/0.1184, allocations: 0.5376 MB / 365.8 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.1186, allocations: 71.16 kB / 365.9 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000254/0.1188, allocations: 130.4 kB / 366 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1188, allocations: 3.938 kB / 366 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.1188, allocations: 0 / 366 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1189, allocations: 0 / 366 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008713/0.1197, allocations: 0.6296 MB / 366.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1197, allocations: 4 kB / 366.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.1198, allocations: 12 kB / 366.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.1198, allocations: 0 / 366.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.429e-05/0.1199, allocations: 31.92 kB / 366.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1199, allocations: 0 / 366.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1199, allocations: 3.984 kB / 366.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1211, allocations: 0.6979 MB / 367.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007027/0.1218, allocations: 0.4918 MB / 367.9 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.1219, allocations: 31.98 kB / 367.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.1221, allocations: 12 kB / 367.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.1223, allocations: 51.94 kB / 368 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.1224, allocations: 119.9 kB / 368.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.1235, allocations: 0.7251 MB / 368.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1235, allocations: 0 / 368.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004084/0.1239, allocations: 95.84 kB / 368.9 MB, free: 1.594 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.0002026/0.1241, allocations: 146.6 kB / 369.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009782/0.1251, allocations: 0.6614 MB / 369.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1251, allocations: 0 / 369.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005966/0.1257, allocations: 0.5249 MB / 370.2 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1545/0.2802, allocations: 201.4 kB / 370.4 MB, free: 26.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.2827, allocations: 1.417 MB / 371.9 MB, free: 26.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.2833, allocations: 0.9587 MB / 372.8 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.2835, allocations: 96.58 kB / 372.9 MB, free: 25.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2835, allocations: 0 / 372.9 MB, free: 25.38 MB / 302.1 MB Notification: Performance of Templates: time 0.009185/0.2927, allocations: 5.412 MB / 378.3 MB, free: 24.8 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/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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches