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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.144/2.144, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003786, allocations: 12 kB / 264 MB, free: 3.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.326, allocations: 44.52 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4799, allocations: 75.37 MB / 383.9 MB, free: 1.199 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4803, allocations: 75.95 kB / 384 MB, free: 1.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04859/0.5289, allocations: 10.2 MB / 394.2 MB, free: 6.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.191e-06/0.5289, allocations: 4 kB / 394.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.55e-05/0.529, allocations: 15.94 kB / 394.2 MB, free: 6.871 MB / 330.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.004934/0.5339, allocations: 1.143 MB / 395.4 MB, free: 5.664 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.534, allocations: 16.03 kB / 395.4 MB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004114/0.5344, allocations: 98.39 kB / 395.5 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000273/0.5347, allocations: 83.09 kB / 395.6 MB, free: 5.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009736/0.5357, allocations: 420.9 kB / 396 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.441e-05/0.5358, allocations: 49.25 kB / 396 MB, free: 4.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.536, allocations: 55.91 kB / 396.1 MB, free: 4.902 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004318/0.5404, allocations: 0.999 MB / 397.1 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.5404, allocations: 0 / 397.1 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.5406, allocations: 20 kB / 397.1 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.5406, allocations: 16 kB / 397.1 MB, free: 3.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006137/0.5468, allocations: 1.132 MB / 398.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008447/0.5553, allocations: 3.15 MB / 401.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.5601, allocations: 1.034 MB / 402.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.5602, allocations: 16.44 kB / 402.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002505/0.5627, allocations: 0.5166 MB / 403 MB, free: 13.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 4.628e-06/0.5628, allocations: 0 / 403 MB, free: 13.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.006427/0.5692, allocations: 1.256 MB / 404.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.5695, allocations: 273.5 kB / 404.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.5707, allocations: 457 kB / 404.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.5709, allocations: 41.7 kB / 405 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.5713, allocations: 335.5 kB / 405.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003033/0.5716, allocations: 169.6 kB / 405.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.19e-05/0.5717, allocations: 16 kB / 405.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002381/0.572, allocations: 366.7 kB / 405.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/0.5745, allocations: 461.7 kB / 406.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002809/0.5774, allocations: 0.7081 MB / 407 MB, free: 9.523 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.58, allocations: 0.5247 MB / 407.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.58, allocations: 0 / 407.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005861/0.5859, allocations: 1.24 MB / 408.8 MB, free: 7.723 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.278e-05/0.586, allocations: 71.38 kB / 408.8 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.5861, allocations: 8 kB / 408.8 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/0.5861, allocations: 8 kB / 408.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/0.5883, allocations: 243.7 kB / 409.1 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.337e-05/0.5883, allocations: 19.92 kB / 409.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/0.5906, allocations: 219.1 kB / 409.3 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002156/0.5909, allocations: 28 kB / 409.4 MB, free: 7.125 MB / 346.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.0005684/0.5915, allocations: 217.6 kB / 409.6 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.5917, allocations: 59.25 kB / 409.6 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.592, allocations: 69.53 kB / 409.7 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.592, allocations: 8 kB / 409.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.592, allocations: 0 / 409.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.592, allocations: 7.984 kB / 409.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006274/0.5983, allocations: 1.744 MB / 411.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.5984, allocations: 3.938 kB / 411.5 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.6, allocations: 179.8 kB / 411.6 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.506e-05/0.6001, allocations: 4 kB / 411.6 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.6002, allocations: 12 kB / 411.6 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.405e-06/0.6002, allocations: 3.984 kB / 411.7 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6002, allocations: 0 / 411.7 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006935/0.6071, allocations: 1.462 MB / 413.1 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.6074, allocations: 140.2 kB / 413.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.6077, allocations: 15.98 kB / 413.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/0.6093, allocations: 143.9 kB / 413.4 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.6096, allocations: 52.36 kB / 413.5 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.725e-05/0.6097, allocations: 12 kB / 413.5 MB, free: 2.902 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000953/0.6107, allocations: 354.8 kB / 413.8 MB, free: 2.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6107, allocations: 0 / 413.8 MB, free: 2.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001098/0.6118, allocations: 167.8 kB / 414 MB, free: 2.395 MB / 346.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.01217/0.624, allocations: 2.038 MB / 416 MB, free: 336 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.271/0.8951, allocations: 1.102 MB / 417.1 MB, free: 95.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.8952, allocations: 3.812 kB / 417.1 MB, free: 95.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.8975, allocations: 472.8 kB / 417.6 MB, free: 95.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008332/0.8983, allocations: 79.97 kB / 417.7 MB, free: 95.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.9129, allocations: 8.343 MB / 426 MB, free: 90.33 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.9133, allocations: 0.8711 MB / 426.9 MB, free: 89.62 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008808/0.9142, allocations: 80.77 kB / 427 MB, free: 89.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005426/0.9148, allocations: 204.5 kB / 427.2 MB, free: 89.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/0.9148, allocations: 0 / 427.2 MB, free: 89.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05233/0.9671, allocations: 11.9 MB / 439.1 MB, free: 82.99 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002638/0.9674, allocations: 178.4 kB / 439.2 MB, free: 82.74 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.19/4.157, allocations: 8 kB / 439.2 MB, free: 82.73 MB / 346.7 MB