Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.609/1.609, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004768/0.0004768, allocations: 12 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07802/0.07855, allocations: 38.77 MB / 272.1 MB, free: 12.1 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3308/0.4094, allocations: 70.07 MB / 342.2 MB, free: 3.879 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.4097, allocations: 73.45 kB / 342.2 MB, free: 3.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04698/0.4567, allocations: 10.33 MB / 352.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4568, allocations: 0 / 352.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.4568, allocations: 12 kB / 352.6 MB, free: 10.98 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.004679/0.4615, allocations: 1.141 MB / 353.7 MB, free: 9.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.4616, allocations: 12.03 kB / 353.7 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003392/0.4619, allocations: 98.95 kB / 353.8 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.4622, allocations: 75.16 kB / 353.9 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008086/0.463, allocations: 425 kB / 354.3 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.352e-05/0.4631, allocations: 46.69 kB / 354.4 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4632, allocations: 58.92 kB / 354.4 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003895/0.4671, allocations: 1.001 MB / 355.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.4672, allocations: 0 / 355.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.4674, allocations: 23.5 kB / 355.4 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.4674, allocations: 16 kB / 355.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005755/0.4732, allocations: 1.128 MB / 356.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008087/0.4813, allocations: 3.163 MB / 359.8 MB, free: 4.844 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.4857, allocations: 1.036 MB / 360.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.812e-05/0.4859, allocations: 14.91 kB / 360.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002279/0.4882, allocations: 0.5095 MB / 361.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 6.592e-06/0.4882, allocations: 0 / 361.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.006204/0.4944, allocations: 1.266 MB / 362.6 MB, free: 2.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001807/0.4947, allocations: 268.3 kB / 362.8 MB, free: 2.203 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.4957, allocations: 450.2 kB / 363.3 MB, free: 1.852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.4959, allocations: 44.27 kB / 363.3 MB, free: 1.812 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.4963, allocations: 371.7 kB / 363.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/0.4965, allocations: 167.7 kB / 363.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.823e-05/0.4966, allocations: 15 kB / 363.9 MB, free: 1.359 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4968, allocations: 345.4 kB / 364.2 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002292/0.4991, allocations: 462.4 kB / 364.7 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.5017, allocations: 0.6967 MB / 365.4 MB, free: 8 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/0.5042, allocations: 0.5282 MB / 365.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.5043, allocations: 0 / 365.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005502/0.5098, allocations: 1.215 MB / 367.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.5099, allocations: 63.41 kB / 367.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.5099, allocations: 4 kB / 367.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.356e-05/0.51, allocations: 12 kB / 367.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/0.5121, allocations: 254.5 kB / 367.4 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.074e-05/0.5121, allocations: 19.89 kB / 367.4 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/0.5143, allocations: 221.7 kB / 367.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.5145, allocations: 27.62 kB / 367.7 MB, free: 14.04 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.0005203/0.515, allocations: 224.3 kB / 367.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.5152, allocations: 59.34 kB / 368 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002052/0.5154, allocations: 64.16 kB / 368 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5154, allocations: 7.984 kB / 368 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.5155, allocations: 4 kB / 368 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.5155, allocations: 3.953 kB / 368 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005732/0.5212, allocations: 1.748 MB / 369.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.5213, allocations: 0 / 369.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/0.5229, allocations: 179.7 kB / 370 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/0.5229, allocations: 4 kB / 370 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.979e-05/0.523, allocations: 11.42 kB / 370 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.523, allocations: 8 kB / 370 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.523, allocations: 0 / 370 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00655/0.5296, allocations: 1.461 MB / 371.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.5299, allocations: 144.2 kB / 371.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002027/0.5301, allocations: 15.39 kB / 371.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/0.5318, allocations: 139.7 kB / 371.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.5321, allocations: 59.17 kB / 371.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-05/0.5322, allocations: 11.98 kB / 371.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008344/0.533, allocations: 347.5 kB / 372.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.533, allocations: 3.938 kB / 372.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009629/0.534, allocations: 174.8 kB / 372.3 MB, free: 10.3 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.006688/0.5407, allocations: 2.025 MB / 374.3 MB, free: 8.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004754/0.5455, allocations: 1.118 MB / 375.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5456, allocations: 0 / 375.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.5477, allocations: 462.5 kB / 375.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007757/0.5485, allocations: 82.69 kB / 376 MB, free: 7.258 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/0.5645, allocations: 8.376 MB / 384.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/0.5651, allocations: 0.8746 MB / 385.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008259/0.566, allocations: 215.3 kB / 385.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.566, allocations: 4 kB / 385.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.585/3.151, allocations: 10.83 MB / 396.3 MB, free: 2.906 MB / 314.7 MB