Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.067/1.067, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.695e-05/3.703e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1928, allocations: 25.15 MB / 176.6 MB, free: 15.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07383/0.2667, allocations: 37.07 MB / 213.7 MB, free: 12.29 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.267, allocations: 63.97 kB / 213.8 MB, free: 12.22 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04477/0.3118, allocations: 9.806 MB / 223.6 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3119, allocations: 3.938 kB / 223.6 MB, free: 2.391 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.521e-05/0.3119, allocations: 15.98 kB / 223.6 MB, free: 2.375 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.004041/0.316, allocations: 1.003 MB / 224.6 MB, free: 1.32 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.3161, allocations: 8.031 kB / 224.6 MB, free: 1.312 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002936/0.3164, allocations: 98.52 kB / 224.7 MB, free: 1.207 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.3166, allocations: 75.14 kB / 224.8 MB, free: 1.133 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008355/0.3175, allocations: 419.2 kB / 225.2 MB, free: 0.6836 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.543e-05/0.3176, allocations: 49.31 kB / 225.2 MB, free: 0.6367 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.3177, allocations: 48 kB / 225.3 MB, free: 0.5898 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.3196, allocations: 0.6741 MB / 226 MB, free: 15.88 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.3197, allocations: 4 kB / 226 MB, free: 15.88 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.3198, allocations: 27.98 kB / 226 MB, free: 15.85 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.3199, allocations: 12 kB / 226 MB, free: 15.84 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.3217, allocations: 0.5877 MB / 226.6 MB, free: 15.25 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007501/0.3292, allocations: 3.136 MB / 229.7 MB, free: 11.98 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.3311, allocations: 0.6745 MB / 230.4 MB, free: 11.26 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009167/0.332, allocations: 310.5 kB / 230.7 MB, free: 10.95 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.227e-05/0.3321, allocations: 12.48 kB / 230.7 MB, free: 10.94 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008863/0.333, allocations: 332.4 kB / 231 MB, free: 10.61 MB / 202.7 MB Notification: Performance of pre-optimization done (n=52): time 8.355e-06/0.3331, allocations: 4 kB / 231 MB, free: 10.6 MB / 202.7 MB Notification: Performance of matching and sorting (n=52): time 0.001575/0.3346, allocations: 0.5112 MB / 231.6 MB, free: 10.08 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.3347, allocations: 59.84 kB / 231.6 MB, free: 10.01 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN2.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN1.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000838/0.3356, allocations: 435.7 kB / 232 MB, free: 9.578 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.3357, allocations: 41.69 kB / 232.1 MB, free: 9.531 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.336, allocations: 374 kB / 232.4 MB, free: 9.16 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.3362, allocations: 177.6 kB / 232.6 MB, free: 8.984 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.3363, allocations: 12 kB / 232.6 MB, free: 8.973 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.3365, allocations: 350.8 kB / 233 MB, free: 8.621 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007089/0.3372, allocations: 237.6 kB / 233.2 MB, free: 8.391 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008739/0.3381, allocations: 444.5 kB / 233.6 MB, free: 7.863 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.3389, allocations: 270.5 kB / 233.9 MB, free: 7.598 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3389, allocations: 0 / 233.9 MB, free: 7.598 MB / 202.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002041/0.341, allocations: 0.7366 MB / 234.6 MB, free: 6.855 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.341, allocations: 8 kB / 234.7 MB, free: 6.848 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.341, allocations: 7.984 kB / 234.7 MB, free: 6.84 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.484e-05/0.3411, allocations: 12.78 kB / 234.7 MB, free: 6.828 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/0.3432, allocations: 251.6 kB / 234.9 MB, free: 6.582 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.922e-05/0.3432, allocations: 15.94 kB / 234.9 MB, free: 6.566 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.3449, allocations: 183.1 kB / 235.1 MB, free: 6.387 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.345, allocations: 35.94 kB / 235.1 MB, free: 6.352 MB / 202.7 MB Warning: Assuming fixed start value for the following 8 variables: VIN1.signalSource.counter:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer VIN2.signalSource.counter:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer Nand.C7.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Nand.C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real VIN2.signalSource.counter2:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) type: Integer VIN2.signalSource.T0:DISCRETE(start = VIN2.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real VIN1.signalSource.counter2:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) type: Integer VIN1.signalSource.T0:DISCRETE(start = VIN1.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VIN1.signalSource.counter,VIN1.signalSource.counter,$PRE.VIN2.signalSource.counter,VIN2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T0,VIN1.signalSource.T0,$PRE.VIN1.signalSource.counter2,VIN1.signalSource.counter2,$PRE.VIN2.signalSource.T0,VIN2.signalSource.T0,$PRE.VIN2.signalSource.counter2,VIN2.signalSource.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * 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.0003927/0.3454, allocations: 182.9 kB / 235.3 MB, free: 6.172 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.3456, allocations: 63.25 kB / 235.4 MB, free: 6.109 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.3458, allocations: 65.36 kB / 235.4 MB, free: 6.043 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.3459, allocations: 4 kB / 235.5 MB, free: 6.039 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.3459, allocations: 4 kB / 235.5 MB, free: 6.035 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.3459, allocations: 3.984 kB / 235.5 MB, free: 6.031 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003258/0.3492, allocations: 1.385 MB / 236.8 MB, free: 4.59 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3492, allocations: 0 / 236.8 MB, free: 4.59 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.3508, allocations: 171.8 kB / 237 MB, free: 4.422 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.3508, allocations: 0 / 237 MB, free: 4.422 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/0.3509, allocations: 19.98 kB / 237 MB, free: 4.402 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-05/0.3509, allocations: 7.953 kB / 237 MB, free: 4.395 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3509, allocations: 4 kB / 237 MB, free: 4.391 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.3534, allocations: 0.9042 MB / 237.9 MB, free: 3.473 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.3536, allocations: 140.3 kB / 238.1 MB, free: 3.316 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.3538, allocations: 15.98 kB / 238.1 MB, free: 3.301 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.355, allocations: 108 kB / 238.2 MB, free: 3.195 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.3552, allocations: 48.33 kB / 238.3 MB, free: 3.148 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.3552, allocations: 19.98 kB / 238.3 MB, free: 3.129 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0005924/0.3558, allocations: 329.6 kB / 238.6 MB, free: 2.809 MB / 202.7 MB Notification: Performance of sort global known variables: time 2.444e-06/0.3559, allocations: 0 / 238.6 MB, free: 2.809 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008911/0.3568, allocations: 167.6 kB / 238.8 MB, free: 2.645 MB / 202.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: 8 ($whenCondition2,$whenCondition1,VIN1.signalSource.T0,VIN1.signalSource.counter,VIN1.signalSource.counter2,VIN2.signalSource.T0,VIN2.signalSource.counter,VIN2.signalSource.counter2) * Number of discrete states: 4 (VIN1.signalSource.counter2,VIN2.signalSource.counter2,VIN1.signalSource.counter,VIN2.signalSource.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00272/0.3595, allocations: 1.477 MB / 240.2 MB, free: 1.141 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.3613, allocations: 0.5894 MB / 240.8 MB, free: 0.5508 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.3613, allocations: 1.875 kB / 240.8 MB, free: 0.5508 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007489/0.3621, allocations: 277.6 kB / 241.1 MB, free: 288 kB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009922/0.3631, allocations: 102.7 kB / 241.2 MB, free: 188 kB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.3661, allocations: 0.9626 MB / 242.2 MB, free: 15.16 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.3667, allocations: 0.8748 MB / 243 MB, free: 14.26 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007065/0.3674, allocations: 211.4 kB / 243.2 MB, free: 14.05 MB / 218.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3674, allocations: 0 / 243.2 MB, free: 14.05 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.413/2.781, allocations: 10.58 MB / 253.8 MB, free: 3.492 MB / 218.7 MB