Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004866/0.0004869, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08951, allocations: 38.78 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002895/0.09246, allocations: 1.727 MB / 274.4 MB, free: 9.785 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.09556, allocations: 0.9793 MB / 275.3 MB, free: 8.801 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.09574, allocations: 3.938 kB / 275.3 MB, free: 8.797 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.09593, allocations: 31.83 kB / 275.4 MB, free: 8.766 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.09611, allocations: 43.86 kB / 275.4 MB, free: 8.723 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004416/0.09656, allocations: 83.78 kB / 275.5 MB, free: 8.641 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.09702, allocations: 215.6 kB / 275.7 MB, free: 8.43 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.09727, allocations: 81.61 kB / 275.8 MB, free: 8.344 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.09833, allocations: 0.6589 MB / 276.4 MB, free: 7.684 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.09865, allocations: 187.5 kB / 276.6 MB, free: 7.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.09876, allocations: 8 kB / 276.6 MB, free: 7.492 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.09887, allocations: 8 kB / 276.6 MB, free: 7.484 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.09909, allocations: 147.5 kB / 276.8 MB, free: 7.34 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.0993, allocations: 141.3 kB / 276.9 MB, free: 7.195 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1003, allocations: 0.7834 MB / 277.7 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1003, allocations: 4 kB / 277.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1003, allocations: 0 / 277.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1004, allocations: 0 / 277.7 MB, free: 6.406 MB / 234.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.001513/0.1019, allocations: 0.9745 MB / 278.7 MB, free: 5.355 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1019, allocations: 15.97 kB / 278.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.1022, allocations: 86.91 kB / 278.8 MB, free: 5.254 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006844/0.1028, allocations: 395.6 kB / 279.2 MB, free: 4.828 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.076e-05/0.1029, allocations: 23.98 kB / 279.2 MB, free: 4.805 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.103, allocations: 16 kB / 279.2 MB, free: 4.789 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009775/0.104, allocations: 293.4 kB / 279.5 MB, free: 4.496 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.104, allocations: 0 / 279.5 MB, free: 4.496 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.211e-05/0.1041, allocations: 12 kB / 279.5 MB, free: 4.484 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1041, allocations: 4 kB / 279.5 MB, free: 4.48 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007794/0.1049, allocations: 207.9 kB / 279.7 MB, free: 4.277 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.107, allocations: 0.9017 MB / 280.6 MB, free: 3.324 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008069/0.1078, allocations: 222.4 kB / 280.8 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.1079, allocations: 0 / 280.8 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008642/0.1088, allocations: 381.4 kB / 281.2 MB, free: 2.691 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.625e-06/0.1088, allocations: 4 kB / 281.2 MB, free: 2.688 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002408/0.1112, allocations: 0.8998 MB / 282.1 MB, free: 1.719 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.1114, allocations: 174.2 kB / 282.3 MB, free: 1.512 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.1135, allocations: 1.008 MB / 283.3 MB, free: 500 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.39e-05/0.1136, allocations: 29.7 kB / 283.3 MB, free: 464 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1138, allocations: 153.9 kB / 283.5 MB, free: 308 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1139, allocations: 55.31 kB / 283.5 MB, free: 252 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.912e-05/0.114, allocations: 7.938 kB / 283.5 MB, free: 244 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1141, allocations: 342.9 kB / 283.9 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004767/0.1146, allocations: 120 kB / 284 MB, free: 15.78 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005219/0.1152, allocations: 164.2 kB / 284.1 MB, free: 15.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005196/0.1157, allocations: 230.7 kB / 284.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1157, allocations: 0 / 284.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001625/0.1174, allocations: 0.5819 MB / 285 MB, free: 14.74 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.1175, allocations: 138.8 kB / 285.1 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1175, allocations: 0 / 285.1 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.1176, allocations: 4 kB / 285.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.1177, allocations: 11.98 kB / 285.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1177, allocations: 4 kB / 285.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.1182, allocations: 35.77 kB / 285.1 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.1184, allocations: 119.9 kB / 285.3 MB, free: 14.41 MB / 250.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.001095/0.1195, allocations: 0.526 MB / 285.8 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.1197, allocations: 75.16 kB / 285.9 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.1201, allocations: 134.4 kB / 286 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1201, allocations: 0 / 286 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1201, allocations: 0 / 286 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.1212, allocations: 0.4918 MB / 286.5 MB, free: 13.12 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/0.1214, allocations: 24 kB / 286.5 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.1219, allocations: 32.03 kB / 286.5 MB, free: 13.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.1221, allocations: 63.89 kB / 286.6 MB, free: 13.01 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001925/0.1241, allocations: 0.9235 MB / 287.5 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001908/0.126, allocations: 0.8517 MB / 288.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006777/0.1267, allocations: 288.1 kB / 288.7 MB, free: 10.83 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001662/0.1284, allocations: 0.7289 MB / 289.4 MB, free: 10.1 MB / 250.7 MB Notification: Performance of Backend: time 8.01e-07/0.1284, allocations: 0 / 289.4 MB, free: 10.1 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.1298, allocations: 0.5986 MB / 290 MB, free: 9.449 MB / 250.7 MB Notification: Performance of SimCode: time 0.00414/0.134, allocations: 2.196 MB / 292.2 MB, free: 7.152 MB / 250.7 MB Notification: Performance of Templates: time 0.01837/0.1524, allocations: 7.009 MB / 299.2 MB, free: 128 kB / 250.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