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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 0.9572/0.9572, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002556/0.0002558, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0448/0.04508, allocations: 25.16 MB / 183.5 MB, free: 5.984 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1715/0.2166, allocations: 37.16 MB / 220.6 MB, free: 5.871 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.2169, allocations: 65.22 kB / 220.7 MB, free: 5.863 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0327/0.2496, allocations: 9.813 MB / 230.5 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.289e-06/0.2496, allocations: 0 / 230.5 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.525e-05/0.2497, allocations: 16 kB / 230.5 MB, free: 0.8828 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.002437/0.2521, allocations: 1.06 MB / 231.6 MB, free: 15.81 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2522, allocations: 12.03 kB / 231.6 MB, free: 15.8 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.2524, allocations: 71.06 kB / 231.7 MB, free: 15.73 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.2531, allocations: 416.9 kB / 232.1 MB, free: 15.36 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.655e-05/0.2532, allocations: 52.55 kB / 232.1 MB, free: 15.33 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.2533, allocations: 47.12 kB / 232.2 MB, free: 15.3 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002659/0.256, allocations: 0.9435 MB / 233.1 MB, free: 14.55 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.2561, allocations: 3.953 kB / 233.1 MB, free: 14.55 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.2562, allocations: 23.12 kB / 233.2 MB, free: 14.54 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.2562, allocations: 12 kB / 233.2 MB, free: 14.53 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003672/0.2599, allocations: 1.107 MB / 234.3 MB, free: 13.66 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005959/0.2659, allocations: 3.117 MB / 237.4 MB, free: 11.07 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/0.2688, allocations: 1.011 MB / 238.4 MB, free: 10.22 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.213e-05/0.2689, allocations: 12.42 kB / 238.4 MB, free: 10.21 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/0.2704, allocations: 0.5152 MB / 238.9 MB, free: 9.793 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 3.963e-06/0.2705, allocations: 0 / 238.9 MB, free: 9.793 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.004083/0.2745, allocations: 1.232 MB / 240.2 MB, free: 8.809 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.2746, allocations: 63.84 kB / 240.2 MB, free: 8.734 MB / 186.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.0008925/0.2755, allocations: 467.1 kB / 240.7 MB, free: 8.375 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/0.2756, allocations: 36.52 kB / 240.7 MB, free: 8.34 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.2759, allocations: 367.5 kB / 241.1 MB, free: 8.039 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.2761, allocations: 173.7 kB / 241.2 MB, free: 7.891 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.2762, allocations: 17.75 kB / 241.3 MB, free: 7.887 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.2764, allocations: 345.3 kB / 241.6 MB, free: 7.551 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.2779, allocations: 429.2 kB / 242 MB, free: 7.238 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.2795, allocations: 0.6439 MB / 242.7 MB, free: 6.629 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.2811, allocations: 470.1 kB / 243.1 MB, free: 6.285 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.2811, allocations: 4 kB / 243.1 MB, free: 6.281 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003472/0.2846, allocations: 1.134 MB / 244.3 MB, free: 5.395 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.2847, allocations: 8 kB / 244.3 MB, free: 5.387 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.2847, allocations: 8 kB / 244.3 MB, free: 5.379 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.867e-05/0.2847, allocations: 12 kB / 244.3 MB, free: 5.367 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.286, allocations: 255.2 kB / 244.5 MB, free: 5.125 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.169e-05/0.2861, allocations: 8 kB / 244.5 MB, free: 5.117 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.2872, allocations: 190.3 kB / 244.7 MB, free: 4.941 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-05/0.2873, allocations: 35.69 kB / 244.8 MB, free: 4.914 MB / 186.7 MB Warning: Assuming fixed start value for the following 8 variables: VIN1.signalSource.counter:DISCRETE(start = VIN1.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer VIN2.signalSource.counter:DISCRETE(start = VIN2.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer Nand.C7.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Nand.C4.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real VIN2.signalSource.counter2:DISCRETE(start = VIN2.signalSource.nperiod fixed = true protected = true ) type: Integer VIN2.signalSource.T0:DISCRETE(start = VIN2.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real VIN1.signalSource.counter2:DISCRETE(start = VIN1.signalSource.nperiod fixed = true protected = true ) type: Integer VIN1.signalSource.T0:DISCRETE(start = VIN1.signalSource.startTime unit = "s" fixed = true 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 () * Number of clocked 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.0005287/0.2879, allocations: 253.2 kB / 245 MB, free: 4.715 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.288, allocations: 59.19 kB / 245.1 MB, free: 4.656 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/0.2882, allocations: 61.03 kB / 245.1 MB, free: 4.609 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.386e-06/0.2882, allocations: 4 kB / 245.1 MB, free: 4.605 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.2882, allocations: 3.984 kB / 245.1 MB, free: 4.602 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.7e-06/0.2882, allocations: 0 / 245.1 MB, free: 4.602 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004377/0.2926, allocations: 1.732 MB / 246.9 MB, free: 2.812 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.182e-06/0.2927, allocations: 0 / 246.9 MB, free: 2.812 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.2943, allocations: 167.8 kB / 247 MB, free: 2.648 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.29e-05/0.2943, allocations: 0 / 247 MB, free: 2.648 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/0.2944, allocations: 27.86 kB / 247.1 MB, free: 2.621 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.699e-06/0.2944, allocations: 4 kB / 247.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.677e-06/0.2944, allocations: 0 / 247.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.2989, allocations: 1.439 MB / 248.5 MB, free: 1.164 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.2991, allocations: 136.4 kB / 248.6 MB, free: 1.012 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.2993, allocations: 15.98 kB / 248.7 MB, free: 0.9961 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000793/0.3001, allocations: 108 kB / 248.8 MB, free: 0.8906 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3002, allocations: 44.38 kB / 248.8 MB, free: 0.8477 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.42e-05/0.3003, allocations: 15.98 kB / 248.8 MB, free: 0.832 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0007186/0.3011, allocations: 354.8 kB / 249.2 MB, free: 496 kB / 186.7 MB Notification: Performance of sort global known variables: time 7.87e-07/0.3011, allocations: 0 / 249.2 MB, free: 496 kB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008187/0.3019, allocations: 167.7 kB / 249.3 MB, free: 328 kB / 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) * Number of clocked states: 0 () * 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.0002211/0.3021, allocations: 123.1 kB / 249.4 MB, free: 196 kB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.003139/0.3053, allocations: 0.979 MB / 250.4 MB, free: 15.2 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.615e-06/0.3053, allocations: 0 / 250.4 MB, free: 15.2 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.3068, allocations: 458.7 kB / 250.9 MB, free: 14.75 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.3075, allocations: 103 kB / 251 MB, free: 14.66 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.3106, allocations: 1.426 MB / 252.4 MB, free: 13.19 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006174/0.3112, allocations: 0.8708 MB / 253.3 MB, free: 12.29 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003914/0.3116, allocations: 59.42 kB / 253.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of SimCode: time 1.501e-06/0.3116, allocations: 3.938 kB / 253.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of Templates: time 0.01541/0.3271, allocations: 8.163 MB / 261.5 MB, free: 4.074 MB / 202.7 MB