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.957/0.957, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 8 kB / 158.2 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04496/0.04525, allocations: 25.18 MB / 183.4 MB, free: 5.992 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005361/0.05066, allocations: 3.267 MB / 186.7 MB, free: 2.719 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.05301, allocations: 1.009 MB / 187.7 MB, free: 1.707 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000436/0.05348, allocations: 11.94 kB / 187.7 MB, free: 1.695 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.05366, allocations: 71.44 kB / 187.8 MB, free: 1.625 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005033/0.05418, allocations: 191.4 kB / 188 MB, free: 1.438 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.05468, allocations: 159.8 kB / 188.1 MB, free: 1.281 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008671/0.05557, allocations: 0.5502 MB / 188.7 MB, free: 0.7305 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004094/0.05599, allocations: 200 kB / 188.9 MB, free: 0.5273 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.05649, allocations: 279.1 kB / 189.1 MB, free: 260 kB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005282/0.05704, allocations: 366.5 kB / 189.5 MB, free: 15.89 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.05718, allocations: 44 kB / 189.5 MB, free: 15.85 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.05732, allocations: 51.94 kB / 189.6 MB, free: 15.8 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.05749, allocations: 127.5 kB / 189.7 MB, free: 15.68 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.05769, allocations: 157.3 kB / 189.9 MB, free: 15.52 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.05898, allocations: 0.8453 MB / 190.7 MB, free: 14.67 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.425e-06/0.05901, allocations: 0 / 190.7 MB, free: 14.67 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.753e-06/0.05904, allocations: 0 / 190.7 MB, free: 14.67 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.05907, allocations: 0 / 190.7 MB, free: 14.67 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.003029/0.06211, allocations: 1.084 MB / 191.8 MB, free: 13.53 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.06217, allocations: 8.031 kB / 191.8 MB, free: 13.52 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.06237, allocations: 75.06 kB / 191.9 MB, free: 13.45 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007463/0.06313, allocations: 420.9 kB / 192.3 MB, free: 13 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.714e-05/0.06325, allocations: 37.31 kB / 192.3 MB, free: 12.96 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002282/0.0635, allocations: 63.89 kB / 192.4 MB, free: 12.9 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002829/0.06635, allocations: 0.9458 MB / 193.3 MB, free: 11.91 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.06639, allocations: 0 / 193.3 MB, free: 11.91 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-05/0.0665, allocations: 20 kB / 193.4 MB, free: 11.89 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.06653, allocations: 19.95 kB / 193.4 MB, free: 11.87 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.07044, allocations: 1.097 MB / 194.5 MB, free: 10.77 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006337/0.07681, allocations: 3.115 MB / 197.6 MB, free: 7.523 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003067/0.07992, allocations: 1.01 MB / 198.6 MB, free: 6.465 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.08002, allocations: 8.422 kB / 198.6 MB, free: 6.457 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001619/0.08165, allocations: 0.5128 MB / 199.1 MB, free: 5.93 MB / 170.7 MB Notification: Performance of pre-optimization done (n=52): time 4.938e-06/0.08168, allocations: 0 / 199.1 MB, free: 5.93 MB / 170.7 MB Notification: Performance of matching and sorting (n=52): time 0.004235/0.08592, allocations: 1.236 MB / 200.4 MB, free: 4.688 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.08603, allocations: 63.84 kB / 200.4 MB, free: 4.613 MB / 170.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.001034/0.08708, allocations: 0.4998 MB / 200.9 MB, free: 4.105 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.974e-05/0.08718, allocations: 41.69 kB / 201 MB, free: 4.059 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.0875, allocations: 370.1 kB / 201.3 MB, free: 3.695 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.08773, allocations: 173.6 kB / 201.5 MB, free: 3.523 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.698e-05/0.0878, allocations: 8 kB / 201.5 MB, free: 3.516 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.08801, allocations: 342.8 kB / 201.8 MB, free: 3.172 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.08957, allocations: 433.7 kB / 202.3 MB, free: 2.75 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.09129, allocations: 0.6406 MB / 202.9 MB, free: 2.02 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.09289, allocations: 469.2 kB / 203.4 MB, free: 1.566 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.09292, allocations: 4 kB / 203.4 MB, free: 1.562 MB / 170.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003627/0.09655, allocations: 1.131 MB / 204.5 MB, free: 432 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.09661, allocations: 8 kB / 204.5 MB, free: 424 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.09664, allocations: 11.98 kB / 204.5 MB, free: 412 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.028e-05/0.09668, allocations: 12 kB / 204.5 MB, free: 400 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.09803, allocations: 256 kB / 204.8 MB, free: 144 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.09807, allocations: 15.88 kB / 204.8 MB, free: 128 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1158/0.2139, allocations: 173.3 kB / 205 MB, free: 23.83 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.2141, allocations: 32.66 kB / 205 MB, free: 23.83 MB / 170.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.0005222/0.2146, allocations: 247.1 kB / 205.2 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.2148, allocations: 57.72 kB / 205.3 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.215, allocations: 67.77 kB / 205.4 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.123e-06/0.215, allocations: 6.922 kB / 205.4 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.157e-06/0.215, allocations: 0 / 205.4 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.215, allocations: 8.938 kB / 205.4 MB, free: 23.71 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.2194, allocations: 1.726 MB / 207.1 MB, free: 23.32 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.2195, allocations: 0 / 207.1 MB, free: 23.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009705/0.2204, allocations: 169.1 kB / 207.3 MB, free: 23.31 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.2205, allocations: 2.75 kB / 207.3 MB, free: 23.31 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.2205, allocations: 14.28 kB / 207.3 MB, free: 23.3 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.561e-06/0.2206, allocations: 4.672 kB / 207.3 MB, free: 23.3 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.2206, allocations: 5.156 kB / 207.3 MB, free: 23.3 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.2249, allocations: 1.442 MB / 208.7 MB, free: 22.83 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.2251, allocations: 138.5 kB / 208.9 MB, free: 22.7 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.2252, allocations: 19.17 kB / 208.9 MB, free: 22.69 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007525/0.226, allocations: 99.92 kB / 209 MB, free: 22.68 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.2262, allocations: 46.39 kB / 209 MB, free: 22.67 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/0.2262, allocations: 18 kB / 209 MB, free: 22.67 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0006434/0.2269, allocations: 350.9 kB / 209.4 MB, free: 22.5 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.2269, allocations: 1.422 kB / 209.4 MB, free: 22.5 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007779/0.2277, allocations: 168.1 kB / 209.6 MB, free: 22.46 MB / 170.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.0001716/0.2279, allocations: 121.7 kB / 209.7 MB, free: 22.37 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.231, allocations: 0.9725 MB / 210.6 MB, free: 22.11 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.155e-06/0.2311, allocations: 3.938 kB / 210.6 MB, free: 22.1 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.2325, allocations: 463.8 kB / 211.1 MB, free: 21.98 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007357/0.2333, allocations: 93.47 kB / 211.2 MB, free: 21.94 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.2361, allocations: 1.45 MB / 212.6 MB, free: 21.08 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.2365, allocations: 0.874 MB / 213.5 MB, free: 20.38 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005055/0.237, allocations: 57.67 kB / 213.6 MB, free: 20.36 MB / 170.7 MB Notification: Performance of SimCode: time 2.541e-06/0.237, allocations: 0 / 213.6 MB, free: 20.36 MB / 170.7 MB Notification: Performance of Templates: time 0.01375/0.2508, allocations: 8.161 MB / 221.7 MB, free: 14.84 MB / 170.7 MB