Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003548, allocations: 16 kB / 264.6 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09176, allocations: 44.51 MB / 309.1 MB, free: 384 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005387/0.0972, allocations: 3.362 MB / 312.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.09958, allocations: 1.104 MB / 313.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002771/0.09987, allocations: 11.94 kB / 313.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.1, allocations: 71.44 kB / 313.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005133/0.1006, allocations: 187.5 kB / 313.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.1012, allocations: 175.7 kB / 314 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009259/0.1021, allocations: 0.5559 MB / 314.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.1026, allocations: 200 kB / 314.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004275/0.103, allocations: 303 kB / 315 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005854/0.1036, allocations: 358.6 kB / 315.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.1038, allocations: 48 kB / 315.4 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.1039, allocations: 48 kB / 315.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.1041, allocations: 139.5 kB / 315.6 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1043, allocations: 145.4 kB / 315.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.1055, allocations: 0.8689 MB / 316.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.1055, allocations: 0 / 316.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1056, allocations: 4 kB / 316.6 MB, free: 8.785 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.1056, allocations: 0 / 316.6 MB, free: 8.785 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004454/0.11, allocations: 1.153 MB / 317.8 MB, free: 7.566 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.1101, allocations: 8.031 kB / 317.8 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.1103, allocations: 71.16 kB / 317.8 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007704/0.1111, allocations: 436.7 kB / 318.3 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/0.1112, allocations: 41.31 kB / 318.3 MB, free: 6.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.1114, allocations: 56 kB / 318.4 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/0.1151, allocations: 0.9993 MB / 319.4 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1152, allocations: 0 / 319.4 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.1153, allocations: 24 kB / 319.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.1153, allocations: 19.98 kB / 319.4 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005576/0.1209, allocations: 1.128 MB / 320.5 MB, free: 4.691 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007324/0.1283, allocations: 3.134 MB / 323.7 MB, free: 1.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004403/0.1327, allocations: 1.03 MB / 324.7 MB, free: 356 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.946e-05/0.1328, allocations: 12.44 kB / 324.7 MB, free: 344 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002248/0.1351, allocations: 0.5127 MB / 325.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.988e-06/0.1351, allocations: 0 / 325.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.006166/0.1413, allocations: 1.267 MB / 326.5 MB, free: 14.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/0.1414, allocations: 265.5 kB / 326.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.1425, allocations: 0.494 MB / 327.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.238e-05/0.1426, allocations: 37.7 kB / 327.3 MB, free: 13.67 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.143, allocations: 335.6 kB / 327.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1432, allocations: 173.5 kB / 327.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/0.1433, allocations: 12 kB / 327.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.1435, allocations: 370.8 kB / 328.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.146, allocations: 461.7 kB / 328.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/0.1486, allocations: 0.712 MB / 329.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.151, allocations: 0.5246 MB / 329.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.151, allocations: 4 kB / 329.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005317/0.1564, allocations: 1.232 MB / 331.1 MB, free: 9.711 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/0.1565, allocations: 71.39 kB / 331.1 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.1565, allocations: 7.938 kB / 331.1 MB, free: 9.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/0.1565, allocations: 12 kB / 331.2 MB, free: 9.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.1585, allocations: 252 kB / 331.4 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.795e-05/0.1586, allocations: 19.92 kB / 331.4 MB, free: 9.344 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.1605, allocations: 207.1 kB / 331.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.1606, allocations: 39.98 kB / 331.7 MB, free: 9.102 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0004502/0.1611, allocations: 209.6 kB / 331.9 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.1612, allocations: 59.34 kB / 331.9 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.1614, allocations: 65.58 kB / 332 MB, free: 8.762 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.1615, allocations: 3.984 kB / 332 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1615, allocations: 0 / 332 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.1617, allocations: 156.1 kB / 332.1 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.1618, allocations: 12 kB / 332.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.1633, allocations: 143.9 kB / 332.3 MB, free: 8.434 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.1635, allocations: 52.36 kB / 332.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005392/0.1689, allocations: 1.046 MB / 333.4 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006417/0.1753, allocations: 1.536 MB / 334.9 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002014/0.1774, allocations: 443.3 kB / 335.4 MB, free: 5.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008036/0.1782, allocations: 350.8 kB / 335.7 MB, free: 5 MB / 282.7 MB Notification: Performance of Backend: time 6.81e-07/0.1782, allocations: 0 / 335.7 MB, free: 5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003168/0.1814, allocations: 0.7976 MB / 336.5 MB, free: 4.176 MB / 282.7 MB Notification: Performance of SimCode: time 0.002848/0.1843, allocations: 1.64 MB / 338.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of Templates: time 0.02522/0.2095, allocations: 9.113 MB / 347.3 MB, free: 9.395 MB / 298.7 MB