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.875/1.875, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.000479, allocations: 8 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.08499, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.397/0.482, allocations: 70.07 MB / 342.7 MB, free: 3.328 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/0.4825, allocations: 70.28 kB / 342.7 MB, free: 3.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05975/0.5422, allocations: 10.34 MB / 353.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5423, allocations: 0 / 353.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.436e-05/0.5423, allocations: 16 kB / 353.1 MB, free: 10.42 MB / 282.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.004844/0.5472, allocations: 1.132 MB / 354.2 MB, free: 9.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.5473, allocations: 8.031 kB / 354.2 MB, free: 9.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003945/0.5477, allocations: 71.16 kB / 354.3 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008971/0.5486, allocations: 437.9 kB / 354.7 MB, free: 8.809 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.5487, allocations: 46.5 kB / 354.8 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.5489, allocations: 52.81 kB / 354.8 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004278/0.5532, allocations: 0.9879 MB / 355.8 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.5532, allocations: 3.938 kB / 355.8 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.5534, allocations: 30.73 kB / 355.9 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.5534, allocations: 20 kB / 355.9 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006067/0.5595, allocations: 1.127 MB / 357 MB, free: 7.008 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.5722, allocations: 3.168 MB / 360.2 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006955/0.5792, allocations: 1.03 MB / 361.2 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001424/0.5795, allocations: 20.11 kB / 361.2 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003622/0.5831, allocations: 0.5069 MB / 361.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 6.271e-06/0.5831, allocations: 0 / 361.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.009897/0.593, allocations: 1.261 MB / 363 MB, free: 2.059 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002318/0.5933, allocations: 273.4 kB / 363.3 MB, free: 1.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001692/0.5951, allocations: 0.5023 MB / 363.8 MB, free: 1.336 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.5953, allocations: 35.95 kB / 363.8 MB, free: 1.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/0.5957, allocations: 335.1 kB / 364.1 MB, free: 1.047 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.5961, allocations: 164.8 kB / 364.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.5962, allocations: 14.25 kB / 364.3 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002662/0.5965, allocations: 371.5 kB / 364.7 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003685/0.6002, allocations: 455.2 kB / 365.1 MB, free: 228 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004085/0.6043, allocations: 0.7095 MB / 365.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003746/0.6081, allocations: 0.525 MB / 366.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/0.6082, allocations: 4 kB / 366.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008641/0.6168, allocations: 1.24 MB / 367.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.617, allocations: 67.09 kB / 367.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.617, allocations: 4 kB / 367.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.593e-05/0.6171, allocations: 12 kB / 367.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/0.6204, allocations: 251.2 kB / 367.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.331e-05/0.6205, allocations: 23.89 kB / 367.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/0.6236, allocations: 214.9 kB / 368.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/0.6238, allocations: 27.69 kB / 368.2 MB, free: 13.54 MB / 298.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.0007412/0.6246, allocations: 226.1 kB / 368.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.6249, allocations: 59.28 kB / 368.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002891/0.6252, allocations: 59.91 kB / 368.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.6252, allocations: 11.98 kB / 368.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.6253, allocations: 0 / 368.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.6253, allocations: 7.953 kB / 368.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006386/0.6317, allocations: 1.747 MB / 370.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.6317, allocations: 0 / 370.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/0.6335, allocations: 187 kB / 370.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.6335, allocations: 0 / 370.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.6337, allocations: 13.8 kB / 370.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.276e-05/0.6337, allocations: 4 kB / 370.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6337, allocations: 0 / 370.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.6445, allocations: 1.458 MB / 371.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.6449, allocations: 140.7 kB / 372.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003249/0.6453, allocations: 15.02 kB / 372.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/0.6476, allocations: 143.3 kB / 372.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.6479, allocations: 53.8 kB / 372.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.6481, allocations: 23.42 kB / 372.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001264/0.6493, allocations: 348.4 kB / 372.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.6494, allocations: 0 / 372.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0016/0.651, allocations: 172.1 kB / 372.8 MB, free: 9.805 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003755/0.6514, allocations: 128.8 kB / 372.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007984/0.6594, allocations: 1.113 MB / 374 MB, free: 8.766 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.6595, allocations: 1.125 kB / 374 MB, free: 8.766 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003564/0.6631, allocations: 477.9 kB / 374.5 MB, free: 8.402 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.6643, allocations: 78.48 kB / 374.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006656/0.671, allocations: 1.405 MB / 376 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008053/0.6719, allocations: 0.8708 MB / 376.9 MB, free: 6.145 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001301/0.6732, allocations: 72.66 kB / 376.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005198/0.6738, allocations: 50.73 kB / 377 MB, free: 6.027 MB / 298.7 MB Notification: Performance of SimCode: time 1.663e-06/0.6738, allocations: 4 kB / 377 MB, free: 6.023 MB / 298.7 MB Notification: Performance of Templates: time 0.03393/0.7077, allocations: 7.017 MB / 384 MB, free: 15.05 MB / 314.7 MB