Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.NandGate.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) 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.093/1.093, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.497e-05, allocations: 4 kB / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1709, allocations: 25.14 MB / 179.5 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06796/0.2389, allocations: 37.07 MB / 216.6 MB, free: 12.02 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.2392, allocations: 67.97 kB / 216.7 MB, free: 11.95 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04432/0.2835, allocations: 9.811 MB / 226.5 MB, free: 2.121 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.2836, allocations: 7.984 kB / 226.5 MB, free: 2.113 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.038e-05/0.2836, allocations: 12 kB / 226.5 MB, free: 2.102 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.004025/0.2877, allocations: 0.9996 MB / 227.5 MB, free: 1.051 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.2877, allocations: 12.03 kB / 227.5 MB, free: 1.039 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003089/0.2881, allocations: 94.52 kB / 227.6 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.2883, allocations: 75.14 kB / 227.7 MB, free: 0.8633 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/0.2892, allocations: 415.3 kB / 228.1 MB, free: 428 kB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.2893, allocations: 41.31 kB / 228.1 MB, free: 388 kB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.2894, allocations: 56 kB / 228.2 MB, free: 332 kB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.2914, allocations: 0.6845 MB / 228.8 MB, free: 15.6 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.2914, allocations: 0 / 228.8 MB, free: 15.6 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.2915, allocations: 23.98 kB / 228.9 MB, free: 15.58 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.2916, allocations: 16 kB / 228.9 MB, free: 15.56 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.2934, allocations: 0.5975 MB / 229.5 MB, free: 14.96 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008082/0.3015, allocations: 3.14 MB / 232.6 MB, free: 11.7 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.3036, allocations: 0.6873 MB / 233.3 MB, free: 10.96 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.3046, allocations: 306.5 kB / 233.6 MB, free: 10.66 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.639e-05/0.3047, allocations: 16.41 kB / 233.6 MB, free: 10.64 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009257/0.3057, allocations: 329.3 kB / 233.9 MB, free: 10.31 MB / 202.7 MB Notification: Performance of pre-optimization done (n=52): time 3.637e-06/0.3057, allocations: 0 / 233.9 MB, free: 10.31 MB / 202.7 MB Notification: Performance of matching and sorting (n=52): time 0.001677/0.3074, allocations: 0.515 MB / 234.5 MB, free: 9.789 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.3075, allocations: 67.78 kB / 234.5 MB, free: 9.711 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.0008944/0.3084, allocations: 433.8 kB / 235 MB, free: 9.281 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.3085, allocations: 41.7 kB / 235 MB, free: 9.234 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/0.3089, allocations: 378 kB / 235.4 MB, free: 8.859 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.3091, allocations: 177.6 kB / 235.5 MB, free: 8.684 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.405e-05/0.3092, allocations: 12 kB / 235.5 MB, free: 8.672 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3094, allocations: 342.8 kB / 235.9 MB, free: 8.328 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007501/0.3101, allocations: 237.6 kB / 236.1 MB, free: 8.098 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009148/0.3111, allocations: 454 kB / 236.6 MB, free: 7.559 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008043/0.3119, allocations: 270.5 kB / 236.8 MB, free: 7.293 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3119, allocations: 0 / 236.8 MB, free: 7.293 MB / 202.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002104/0.314, allocations: 0.7527 MB / 237.6 MB, free: 6.535 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.3141, allocations: 7.984 kB / 237.6 MB, free: 6.527 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3141, allocations: 11.94 kB / 237.6 MB, free: 6.516 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.393e-05/0.3142, allocations: 12 kB / 237.6 MB, free: 6.504 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002144/0.3163, allocations: 251.8 kB / 237.8 MB, free: 6.258 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.892e-05/0.3164, allocations: 15.94 kB / 237.9 MB, free: 6.242 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.3181, allocations: 183 kB / 238 MB, free: 6.062 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.782e-05/0.3182, allocations: 32 kB / 238.1 MB, free: 6.031 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.0004337/0.3187, allocations: 191 kB / 238.3 MB, free: 5.844 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.3189, allocations: 51.34 kB / 238.3 MB, free: 5.793 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.3191, allocations: 65.36 kB / 238.4 MB, free: 5.73 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3191, allocations: 8 kB / 238.4 MB, free: 5.723 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.3191, allocations: 0 / 238.4 MB, free: 5.723 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3192, allocations: 3.984 kB / 238.4 MB, free: 5.719 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003254/0.3224, allocations: 1.381 MB / 239.8 MB, free: 4.281 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3225, allocations: 4 kB / 239.8 MB, free: 4.277 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/0.324, allocations: 171.8 kB / 239.9 MB, free: 4.109 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/0.3241, allocations: 4 kB / 239.9 MB, free: 4.105 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.501e-05/0.3242, allocations: 15.98 kB / 240 MB, free: 4.09 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/0.3242, allocations: 3.953 kB / 240 MB, free: 4.086 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3242, allocations: 4 kB / 240 MB, free: 4.082 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.3266, allocations: 0.912 MB / 240.9 MB, free: 3.152 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.3269, allocations: 144.4 kB / 241 MB, free: 2.992 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.3271, allocations: 12 kB / 241 MB, free: 2.98 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.3283, allocations: 103.9 kB / 241.1 MB, free: 2.879 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.3286, allocations: 48.33 kB / 241.2 MB, free: 2.832 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.02e-05/0.3287, allocations: 19.98 kB / 241.2 MB, free: 2.812 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006312/0.3293, allocations: 329.6 kB / 241.5 MB, free: 2.488 MB / 202.7 MB Notification: Performance of sort global known variables: time 2.525e-06/0.3293, allocations: 4 kB / 241.5 MB, free: 2.484 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008936/0.3302, allocations: 167.6 kB / 241.7 MB, free: 2.32 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.00282/0.3331, allocations: 1.469 MB / 243.2 MB, free: 0.8242 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.335, allocations: 0.6114 MB / 243.8 MB, free: 220 kB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.335, allocations: 0 / 243.8 MB, free: 220 kB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1419/0.4769, allocations: 269.7 kB / 244 MB, free: 52.26 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.478, allocations: 104.2 kB / 244.1 MB, free: 52.26 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.4815, allocations: 0.97 MB / 245.1 MB, free: 51.95 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.482, allocations: 0.8726 MB / 246 MB, free: 51.25 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008096/0.4828, allocations: 210.5 kB / 246.2 MB, free: 51.25 MB / 202.7 MB Notification: Performance of SimCode: time 1.242e-06/0.4828, allocations: 0 / 246.2 MB, free: 51.25 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.511/2.994, allocations: 10.61 MB / 256.8 MB, free: 47.97 MB / 202.7 MB