Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003577, allocations: 12 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09145, allocations: 44.5 MB / 309.1 MB, free: 380 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003002/0.0945, allocations: 1.724 MB / 310.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.09769, allocations: 1.003 MB / 311.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.09785, allocations: 0 / 311.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.09803, allocations: 31.72 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.09822, allocations: 47.84 kB / 311.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.09866, allocations: 87.77 kB / 312 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.09908, allocations: 215.6 kB / 312.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.09933, allocations: 73.66 kB / 312.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.1004, allocations: 0.6589 MB / 312.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.1008, allocations: 183.5 kB / 313.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.1009, allocations: 12 kB / 313.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.101, allocations: 8 kB / 313.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1012, allocations: 147.5 kB / 313.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.1014, allocations: 141.3 kB / 313.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1025, allocations: 0.7874 MB / 314.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.1025, allocations: 0 / 314.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1025, allocations: 0 / 314.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1025, allocations: 0 / 314.2 MB, free: 11.24 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.001544/0.1041, allocations: 0.9706 MB / 315.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.1041, allocations: 12.03 kB / 315.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.1043, allocations: 87.02 kB / 315.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006918/0.105, allocations: 395.5 kB / 315.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.1051, allocations: 12 kB / 315.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.413e-05/0.1052, allocations: 20 kB / 315.6 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009747/0.1062, allocations: 297.4 kB / 315.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1062, allocations: 0 / 315.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/0.1063, allocations: 8 kB / 315.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1063, allocations: 4 kB / 315.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007878/0.1071, allocations: 215.8 kB / 316.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1091, allocations: 0.9019 MB / 317.1 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.11, allocations: 214.5 kB / 317.3 MB, free: 7.945 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.1101, allocations: 96 / 317.3 MB, free: 7.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008784/0.111, allocations: 384.1 kB / 317.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.855e-06/0.111, allocations: 0 / 317.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.00245/0.1134, allocations: 0.9083 MB / 318.6 MB, free: 6.559 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.1136, allocations: 178.2 kB / 318.7 MB, free: 6.348 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.1157, allocations: 1 MB / 319.7 MB, free: 5.332 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.486e-05/0.1158, allocations: 33.7 kB / 319.8 MB, free: 5.293 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.1161, allocations: 153.8 kB / 319.9 MB, free: 5.141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.1162, allocations: 47.42 kB / 320 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.1162, allocations: 8 kB / 320 MB, free: 5.086 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1164, allocations: 334.9 kB / 320.3 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/0.1169, allocations: 127.9 kB / 320.4 MB, free: 4.625 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.1174, allocations: 168.1 kB / 320.6 MB, free: 4.445 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005105/0.118, allocations: 218.8 kB / 320.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.118, allocations: 0 / 320.8 MB, free: 4.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001664/0.1197, allocations: 0.5858 MB / 321.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.1198, allocations: 134.8 kB / 321.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1198, allocations: 0 / 321.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.1199, allocations: 4.062 kB / 321.5 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.12, allocations: 19.94 kB / 321.5 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.12, allocations: 4 kB / 321.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000515/0.1206, allocations: 43.75 kB / 321.6 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.1208, allocations: 111.9 kB / 321.7 MB, free: 3.254 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009957/0.1218, allocations: 0.5298 MB / 322.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.122, allocations: 83.05 kB / 322.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.1223, allocations: 130.4 kB / 322.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1223, allocations: 0 / 322.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1223, allocations: 4.109 kB / 322.4 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.1234, allocations: 0.4958 MB / 322.9 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.1236, allocations: 24 kB / 323 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.124, allocations: 31.89 kB / 323 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.1243, allocations: 63.86 kB / 323 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002042/0.1263, allocations: 0.9228 MB / 324 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001962/0.1283, allocations: 0.8442 MB / 324.8 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006891/0.1291, allocations: 287.9 kB / 325.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001625/0.1307, allocations: 0.7289 MB / 325.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of Backend: time 9.52e-07/0.1307, allocations: 0 / 325.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.1321, allocations: 0.6014 MB / 326.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of SimCode: time 0.00411/0.1363, allocations: 2.18 MB / 328.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of Templates: time 0.02301/0.1593, allocations: 7.006 MB / 335.6 MB, free: 4.969 MB / 282.7 MB "" Variables in the reference:time,Adder.AND.G2.x,Adder.AND.G2.y,Adder.XOR.G2.x,Adder.XOR.G2.y Variables in the result:Adder.AND.G1.n,Adder.AND.G2.tHL,Adder.AND.G2.tLH,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.y0,Adder.AND.n,Adder.AND.tHL,Adder.AND.tLH,Adder.AND.y0,Adder.XOR.G1.n,Adder.XOR.G2.tHL,Adder.XOR.G2.tLH,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.y0,Adder.XOR.n,Adder.XOR.tHL,Adder.XOR.tLH,Adder.XOR.y0,Adder.delayTime,a.n,a.t[1],a.t[2],a.t[3],a.t[4],a.x[1],a.x[2],a.x[3],a.x[4],a.y0,b.n,b.t[1],b.t[2],b.x[1],b.x[2],b.y0,c.n,c.value_0,c.value_1,c.value_H,c.value_L,c.value_U,c.value_W,c.value_X,c.value_Z,c.value_m,s.n,s.value_0,s.value_1,s.value_H,s.value_L,s.value_U,s.value_W,s.value_X,s.value_Z,s.value_m,time