Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004731/0.0004732, allocations: 16 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.107, allocations: 44.51 MB / 308.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3835/0.4906, allocations: 75.38 MB / 383.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.4909, allocations: 74.03 kB / 384 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04223/0.5331, allocations: 10.21 MB / 394.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.028e-06/0.5332, allocations: 3.906 kB / 394.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.323e-05/0.5332, allocations: 11.81 kB / 394.2 MB, free: 13.87 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.004358/0.5376, allocations: 1.145 MB / 395.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.5377, allocations: 7.75 kB / 395.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003584/0.5381, allocations: 98.72 kB / 395.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.5383, allocations: 81.11 kB / 395.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/0.539, allocations: 415.9 kB / 395.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.539, allocations: 41.34 kB / 396 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.5392, allocations: 59.77 kB / 396 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003424/0.5426, allocations: 0.9978 MB / 397 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.5427, allocations: 3.938 kB / 397 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.5428, allocations: 27.62 kB / 397.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.5428, allocations: 15.78 kB / 397.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005459/0.5483, allocations: 1.127 MB / 398.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007185/0.5556, allocations: 3.149 MB / 401.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004062/0.5597, allocations: 1.039 MB / 402.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.48e-05/0.5598, allocations: 19.61 kB / 402.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002078/0.5619, allocations: 0.5088 MB / 402.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.617e-06/0.5619, allocations: 0 / 402.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.005596/0.5675, allocations: 1.258 MB / 404.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.5677, allocations: 277 kB / 404.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008789/0.5685, allocations: 452 kB / 404.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.68e-05/0.5687, allocations: 40.02 kB / 404.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.5689, allocations: 380.8 kB / 405.3 MB, free: 9.797 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.5691, allocations: 169 kB / 405.5 MB, free: 9.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.76e-05/0.5692, allocations: 10.81 kB / 405.5 MB, free: 9.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.57e-05/0.5693, allocations: 337.3 kB / 405.8 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/0.5713, allocations: 462.1 kB / 406.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.5736, allocations: 0.7099 MB / 407 MB, free: 8.859 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00216/0.5758, allocations: 0.5252 MB / 407.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.5758, allocations: 3.938 kB / 407.5 MB, free: 8.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004741/0.5806, allocations: 1.2 MB / 408.7 MB, free: 8.367 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.757e-05/0.5807, allocations: 74.66 kB / 408.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.5807, allocations: 4.094 kB / 408.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/0.5807, allocations: 19.41 kB / 408.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.5826, allocations: 249.2 kB / 409.1 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/0.5826, allocations: 7.625 kB / 409.1 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.5845, allocations: 221 kB / 409.3 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.25e-05/0.5847, allocations: 32.22 kB / 409.3 MB, free: 8.137 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.0004532/0.5851, allocations: 218.8 kB / 409.5 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.5853, allocations: 54.22 kB / 409.6 MB, free: 7.973 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001947/0.5855, allocations: 72.22 kB / 409.6 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.5855, allocations: 3.875 kB / 409.6 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5855, allocations: 0 / 409.6 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.5855, allocations: 7.859 kB / 409.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00511/0.5906, allocations: 1.755 MB / 411.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.5907, allocations: 0 / 411.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.5922, allocations: 174.9 kB / 411.6 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.5922, allocations: 7.938 kB / 411.6 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.5923, allocations: 15.08 kB / 411.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.5923, allocations: 0 / 411.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5923, allocations: 0 / 411.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.598, allocations: 1.474 MB / 413.1 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.5983, allocations: 133.7 kB / 413.2 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.5984, allocations: 14.55 kB / 413.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.5999, allocations: 143 kB / 413.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.6001, allocations: 53.27 kB / 413.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/0.6002, allocations: 11.31 kB / 413.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007096/0.6009, allocations: 348.6 kB / 413.8 MB, free: 6.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6009, allocations: 4 kB / 413.8 MB, free: 6.461 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009606/0.6019, allocations: 176 kB / 413.9 MB, free: 6.445 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.006071/0.608, allocations: 2.025 MB / 416 MB, free: 5.508 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.6125, allocations: 1.115 MB / 417.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6126, allocations: 0 / 417.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.6145, allocations: 476.6 kB / 417.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/0.6153, allocations: 78.16 kB / 417.6 MB, free: 5.066 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.6297, allocations: 8.38 MB / 426 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005075/0.6303, allocations: 0.8758 MB / 426.9 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007514/0.6311, allocations: 209.7 kB / 427.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6311, allocations: 0 / 427.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.63/3.261, allocations: 10.83 MB / 437.9 MB, free: 8.926 MB / 330.7 MB