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 2.222/2.222, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004146/0.0004147, allocations: 8 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 44.51 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4337/0.5386, allocations: 75.37 MB / 384.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.539, allocations: 79.77 kB / 384.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04273/0.5817, allocations: 10.21 MB / 394.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5818, allocations: 0 / 394.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.271e-05/0.5818, allocations: 15.56 kB / 394.7 MB, free: 14.45 MB / 314.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.003943/0.5858, allocations: 1.138 MB / 395.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.5858, allocations: 7.625 kB / 395.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/0.5861, allocations: 77.59 kB / 395.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006851/0.5868, allocations: 426.9 kB / 396.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.5869, allocations: 40.16 kB / 396.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.587, allocations: 61.03 kB / 396.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.5904, allocations: 1.001 MB / 397.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.5905, allocations: 0 / 397.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5906, allocations: 21.25 kB / 397.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.5906, allocations: 15.62 kB / 397.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005138/0.5958, allocations: 1.129 MB / 398.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007447/0.6033, allocations: 3.155 MB / 401.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004148/0.6075, allocations: 1.031 MB / 402.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.152e-05/0.6076, allocations: 12.11 kB / 402.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002085/0.6097, allocations: 0.521 MB / 403.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.238e-06/0.6097, allocations: 0 / 403.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.00589/0.6156, allocations: 1.26 MB / 404.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.6158, allocations: 265.1 kB / 404.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.6168, allocations: 0.4964 MB / 405.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.6171, allocations: 39.58 kB / 405.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.6173, allocations: 346.3 kB / 405.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.6175, allocations: 172.4 kB / 405.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.6176, allocations: 13.44 kB / 405.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.6177, allocations: 366 kB / 406.3 MB, free: 9.801 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.6198, allocations: 462.4 kB / 406.7 MB, free: 9.711 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002327/0.6222, allocations: 0.7009 MB / 407.4 MB, free: 9.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.6244, allocations: 0.534 MB / 408 MB, free: 9.148 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.6244, allocations: 0 / 408 MB, free: 9.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004902/0.6293, allocations: 1.239 MB / 409.2 MB, free: 8.789 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.221e-05/0.6294, allocations: 71.09 kB / 409.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.6295, allocations: 7.797 kB / 409.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.6295, allocations: 7.656 kB / 409.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001898/0.6314, allocations: 250.9 kB / 409.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.296e-05/0.6314, allocations: 19.69 kB / 409.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.6334, allocations: 208.9 kB / 409.8 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.6336, allocations: 38.14 kB / 409.8 MB, free: 8.562 MB / 314.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.0004685/0.634, allocations: 211.4 kB / 410 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.6342, allocations: 58.62 kB / 410.1 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.6344, allocations: 73.16 kB / 410.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.6344, allocations: 7.75 kB / 410.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.6344, allocations: 0 / 410.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.6345, allocations: 7.969 kB / 410.1 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005174/0.6396, allocations: 1.755 MB / 411.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.6397, allocations: 0 / 411.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/0.6412, allocations: 174.8 kB / 412.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.6412, allocations: 3.812 kB / 412.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.096e-05/0.6413, allocations: 10.03 kB / 412.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.6413, allocations: 0 / 412.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6413, allocations: 0 / 412.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006004/0.6474, allocations: 1.469 MB / 413.5 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.6477, allocations: 142.2 kB / 413.7 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.6479, allocations: 10.94 kB / 413.7 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.6494, allocations: 151.5 kB / 413.8 MB, free: 7.043 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.6496, allocations: 49.89 kB / 413.9 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.6497, allocations: 15.06 kB / 413.9 MB, free: 7.023 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007419/0.6505, allocations: 346.4 kB / 414.2 MB, free: 6.891 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6505, allocations: 0 / 414.2 MB, free: 6.891 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000954/0.6514, allocations: 165.3 kB / 414.4 MB, free: 6.883 MB / 314.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.0002284/0.6517, allocations: 127.2 kB / 414.5 MB, free: 6.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.6562, allocations: 1.11 MB / 415.6 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6562, allocations: 4.062 kB / 415.6 MB, free: 6.449 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.6586, allocations: 473.7 kB / 416.1 MB, free: 6.359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.6597, allocations: 81.83 kB / 416.2 MB, free: 6.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.6632, allocations: 1.419 MB / 417.6 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.6635, allocations: 0.8739 MB / 418.5 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008574/0.6644, allocations: 83.7 kB / 418.6 MB, free: 4.664 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.6647, allocations: 45.31 kB / 418.6 MB, free: 4.656 MB / 314.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6648, allocations: 0 / 418.6 MB, free: 4.656 MB / 314.7 MB Notification: Performance of Templates: time 0.01909/0.6839, allocations: 7.025 MB / 425.6 MB, free: 1.223 MB / 314.7 MB