Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.067/1.067, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.005e-05/2.02e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0458/0.04584, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.2238, allocations: 36.39 MB / 209.7 MB, free: 7.039 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.224, allocations: 64.83 kB / 209.7 MB, free: 7.039 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0342/0.2582, allocations: 9.726 MB / 219.5 MB, free: 4.895 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.326e-06/0.2583, allocations: 4 kB / 219.5 MB, free: 4.891 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.954e-05/0.2583, allocations: 11.5 kB / 219.5 MB, free: 4.891 MB / 170.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.002298/0.2606, allocations: 0.9967 MB / 220.5 MB, free: 4.234 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2607, allocations: 7.469 kB / 220.5 MB, free: 4.234 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.2609, allocations: 73.91 kB / 220.6 MB, free: 4.195 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006252/0.2616, allocations: 421.2 kB / 221 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.238e-05/0.2616, allocations: 23.33 kB / 221 MB, free: 3.891 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.2618, allocations: 30.91 kB / 221 MB, free: 3.891 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00133/0.2631, allocations: 0.5584 MB / 221.6 MB, free: 3.871 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.2644, allocations: 0.6183 MB / 222.2 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.2644, allocations: 0 / 222.2 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.2645, allocations: 3.969 kB / 222.2 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.2646, allocations: 11.66 kB / 222.2 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005328/0.2699, allocations: 3.039 MB / 225.3 MB, free: 1.82 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.2712, allocations: 0.6651 MB / 225.9 MB, free: 1.566 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006183/0.2718, allocations: 288.4 kB / 226.2 MB, free: 1.551 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.73e-05/0.2719, allocations: 15.67 kB / 226.2 MB, free: 1.543 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006718/0.2726, allocations: 319.3 kB / 226.5 MB, free: 1.441 MB / 170.7 MB Notification: Performance of pre-optimization done (n=52): time 4.746e-06/0.2726, allocations: 3.938 kB / 226.5 MB, free: 1.438 MB / 170.7 MB Notification: Performance of matching and sorting (n=52): time 0.001137/0.2737, allocations: 495.1 kB / 227 MB, free: 1.34 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.2738, allocations: 63.58 kB / 227.1 MB, free: 1.27 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.0005774/0.2744, allocations: 404.1 kB / 227.5 MB, free: 1.121 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.2745, allocations: 25.7 kB / 227.5 MB, free: 1.09 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.2746, allocations: 378.4 kB / 227.9 MB, free: 0.8125 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.2748, allocations: 166.1 kB / 228 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.2749, allocations: 4 kB / 228 MB, free: 0.6875 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.062e-05/0.275, allocations: 333.9 kB / 228.4 MB, free: 376 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.2755, allocations: 230.2 kB / 228.6 MB, free: 372 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006106/0.2761, allocations: 431.8 kB / 229 MB, free: 100 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005937/0.2767, allocations: 257.4 kB / 229.3 MB, free: 56 kB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.864e-06/0.2768, allocations: 4 kB / 229.3 MB, free: 52 kB / 170.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001674/0.2784, allocations: 0.6791 MB / 229.9 MB, free: 15.91 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.2785, allocations: 7.75 kB / 230 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.2785, allocations: 11.58 kB / 230 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.2786, allocations: 11.62 kB / 230 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.2798, allocations: 255.2 kB / 230.2 MB, free: 15.85 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.2799, allocations: 19.55 kB / 230.2 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.281, allocations: 163.8 kB / 230.4 MB, free: 15.77 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.2811, allocations: 33.66 kB / 230.4 MB, free: 15.76 MB / 186.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.0003229/0.2814, allocations: 159.3 kB / 230.6 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.2815, allocations: 58.14 kB / 230.6 MB, free: 15.59 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.2817, allocations: 62.39 kB / 230.7 MB, free: 15.58 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.807e-06/0.2817, allocations: 3.875 kB / 230.7 MB, free: 15.58 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.921e-06/0.2818, allocations: 0 / 230.7 MB, free: 15.58 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.2818, allocations: 3.984 kB / 230.7 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.2843, allocations: 1.29 MB / 232 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.517e-06/0.2843, allocations: 0 / 232 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000952/0.2853, allocations: 169.1 kB / 232.2 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.866e-06/0.2853, allocations: 0 / 232.2 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.386e-05/0.2854, allocations: 11.02 kB / 232.2 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.956e-06/0.2854, allocations: 3.844 kB / 232.2 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.349e-06/0.2854, allocations: 0 / 232.2 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.2871, allocations: 0.8774 MB / 233.1 MB, free: 14.79 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.2873, allocations: 135.5 kB / 233.2 MB, free: 14.66 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.2875, allocations: 9.75 kB / 233.2 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007851/0.2882, allocations: 102.4 kB / 233.3 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.2884, allocations: 47.06 kB / 233.4 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/0.2885, allocations: 23.14 kB / 233.4 MB, free: 14.59 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0004676/0.289, allocations: 300.7 kB / 233.7 MB, free: 14.48 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.289, allocations: 0 / 233.7 MB, free: 14.48 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008315/0.2898, allocations: 147.2 kB / 233.8 MB, free: 14.46 MB / 186.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.0002037/0.29, allocations: 111.2 kB / 233.9 MB, free: 14.37 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.2912, allocations: 0.5688 MB / 234.5 MB, free: 14.33 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2913, allocations: 4.062 kB / 234.5 MB, free: 14.33 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005477/0.2918, allocations: 273.7 kB / 234.8 MB, free: 14.31 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000633/0.2925, allocations: 77.83 kB / 234.8 MB, free: 14.29 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.2945, allocations: 0.8414 MB / 235.7 MB, free: 13.76 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006034/0.2951, allocations: 0.8746 MB / 236.6 MB, free: 12.96 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.2955, allocations: 47.44 kB / 236.6 MB, free: 12.91 MB / 186.7 MB Notification: Performance of SimCode: time 1.693e-06/0.2955, allocations: 0 / 236.6 MB, free: 12.91 MB / 186.7 MB Notification: Performance of Templates: time 0.01551/0.311, allocations: 7.958 MB / 244.6 MB, free: 4.961 MB / 186.7 MB