Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.793/1.793, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005464/0.0005468, allocations: 12 kB / 233.9 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09482, allocations: 38.78 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005581/0.1005, allocations: 3.357 MB / 276 MB, free: 8.168 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002618/0.1031, allocations: 1.103 MB / 277.1 MB, free: 7.062 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.1035, allocations: 8 kB / 277.1 MB, free: 7.055 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.1037, allocations: 63.45 kB / 277.2 MB, free: 6.992 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005969/0.1043, allocations: 191.4 kB / 277.3 MB, free: 6.805 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006157/0.1049, allocations: 159.8 kB / 277.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.1059, allocations: 0.5598 MB / 278.1 MB, free: 6.086 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004617/0.1064, allocations: 203.9 kB / 278.3 MB, free: 5.883 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.1069, allocations: 291.1 kB / 278.5 MB, free: 5.598 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006015/0.1075, allocations: 374.5 kB / 278.9 MB, free: 5.23 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.1076, allocations: 52 kB / 279 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.1078, allocations: 48 kB / 279 MB, free: 5.133 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.108, allocations: 131.5 kB / 279.1 MB, free: 5.004 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1082, allocations: 149.4 kB / 279.3 MB, free: 4.852 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.1094, allocations: 0.8689 MB / 280.1 MB, free: 3.98 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1094, allocations: 3.938 kB / 280.2 MB, free: 3.977 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1094, allocations: 4 kB / 280.2 MB, free: 3.973 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.1095, allocations: 0 / 280.2 MB, free: 3.973 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00433/0.1138, allocations: 1.153 MB / 281.3 MB, free: 2.75 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1139, allocations: 8.031 kB / 281.3 MB, free: 2.742 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.1141, allocations: 83.08 kB / 281.4 MB, free: 2.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007758/0.1149, allocations: 420.8 kB / 281.8 MB, free: 2.207 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.115, allocations: 49.27 kB / 281.9 MB, free: 2.16 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.1152, allocations: 52 kB / 281.9 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003734/0.1189, allocations: 0.9955 MB / 282.9 MB, free: 1.055 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.1189, allocations: 0 / 282.9 MB, free: 1.055 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.1191, allocations: 27.98 kB / 282.9 MB, free: 1.027 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.1191, allocations: 16 kB / 282.9 MB, free: 1.012 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005525/0.1246, allocations: 1.124 MB / 284.1 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007486/0.1322, allocations: 3.142 MB / 287.2 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004359/0.1366, allocations: 1.026 MB / 288.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.861e-05/0.1367, allocations: 16.48 kB / 288.3 MB, free: 11.53 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002218/0.1389, allocations: 0.5127 MB / 288.8 MB, free: 11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 4.628e-06/0.139, allocations: 0 / 288.8 MB, free: 11 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.006068/0.145, allocations: 1.256 MB / 290 MB, free: 9.738 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.1452, allocations: 273.5 kB / 290.3 MB, free: 9.41 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.1463, allocations: 0.5017 MB / 290.8 MB, free: 8.895 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.1465, allocations: 37.7 kB / 290.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.1468, allocations: 335.6 kB / 291.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.1471, allocations: 169.6 kB / 291.3 MB, free: 8.352 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.098e-05/0.1472, allocations: 16 kB / 291.3 MB, free: 8.336 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1474, allocations: 366.7 kB / 291.7 MB, free: 7.969 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.1497, allocations: 461.7 kB / 292.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002584/0.1523, allocations: 0.704 MB / 292.9 MB, free: 6.703 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.1547, allocations: 0.5246 MB / 293.4 MB, free: 6.164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.1547, allocations: 4 kB / 293.4 MB, free: 6.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00531/0.1601, allocations: 1.244 MB / 294.6 MB, free: 4.898 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.439e-05/0.1602, allocations: 63.47 kB / 294.7 MB, free: 4.824 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.1602, allocations: 11.98 kB / 294.7 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/0.1603, allocations: 11.94 kB / 294.7 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.1622, allocations: 247.7 kB / 295 MB, free: 4.559 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.1623, allocations: 15.94 kB / 295 MB, free: 4.543 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.1642, allocations: 219.1 kB / 295.2 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.1643, allocations: 31.94 kB / 295.2 MB, free: 4.297 MB / 250.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.0004605/0.1648, allocations: 225.5 kB / 295.4 MB, free: 4.066 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.1649, allocations: 55.34 kB / 295.5 MB, free: 4.012 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.1652, allocations: 61.59 kB / 295.5 MB, free: 3.949 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1652, allocations: 3.984 kB / 295.6 MB, free: 3.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1652, allocations: 4 kB / 295.6 MB, free: 3.941 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.1654, allocations: 140.3 kB / 295.7 MB, free: 3.785 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.1656, allocations: 8 kB / 295.7 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/0.167, allocations: 147.8 kB / 295.8 MB, free: 3.633 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.1672, allocations: 56.3 kB / 295.9 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005261/0.1725, allocations: 1.054 MB / 297 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006299/0.1788, allocations: 1.524 MB / 298.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001999/0.1808, allocations: 447.3 kB / 298.9 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008299/0.1817, allocations: 346.8 kB / 299.3 MB, free: 208 kB / 250.7 MB Notification: Performance of Backend: time 6.01e-07/0.1817, allocations: 0 / 299.3 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.2323/0.4139, allocations: 0.8073 MB / 300.1 MB, free: 31.58 MB / 250.7 MB Notification: Performance of SimCode: time 0.002744/0.4167, allocations: 1.642 MB / 301.7 MB, free: 30.51 MB / 250.7 MB Notification: Performance of Templates: time 0.02578/0.4426, allocations: 9.123 MB / 310.8 MB, free: 27.56 MB / 250.7 MB