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.112/1.112, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.0002741, allocations: 4 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05714/0.05745, allocations: 25.18 MB / 183.5 MB, free: 5.91 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00542/0.06292, allocations: 3.271 MB / 186.8 MB, free: 2.633 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.06523, allocations: 1.006 MB / 187.8 MB, free: 1.625 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/0.06554, allocations: 12 kB / 187.8 MB, free: 1.613 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.06571, allocations: 67.44 kB / 187.9 MB, free: 1.547 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005552/0.06628, allocations: 199.4 kB / 188.1 MB, free: 1.352 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.0669, allocations: 151.8 kB / 188.2 MB, free: 1.203 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009204/0.06784, allocations: 0.5464 MB / 188.8 MB, free: 0.6562 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/0.06832, allocations: 207.9 kB / 189 MB, free: 456 kB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.06874, allocations: 283.1 kB / 189.2 MB, free: 172 kB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005989/0.06935, allocations: 358.6 kB / 189.6 MB, free: 15.81 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.06951, allocations: 51.94 kB / 189.6 MB, free: 15.76 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.06968, allocations: 44 kB / 189.7 MB, free: 15.72 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.06987, allocations: 135.4 kB / 189.8 MB, free: 15.59 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.07007, allocations: 149.3 kB / 190 MB, free: 15.44 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.07125, allocations: 0.8414 MB / 190.8 MB, free: 14.59 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.07127, allocations: 0 / 190.8 MB, free: 14.59 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.07128, allocations: 4 kB / 190.8 MB, free: 14.59 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.0713, allocations: 4 kB / 190.8 MB, free: 14.59 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.004105/0.07542, allocations: 1.08 MB / 191.9 MB, free: 13.45 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.07548, allocations: 12.02 kB / 191.9 MB, free: 13.44 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/0.0757, allocations: 94.52 kB / 192 MB, free: 13.34 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.07591, allocations: 71.16 kB / 192.1 MB, free: 13.27 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007769/0.0767, allocations: 428.7 kB / 192.5 MB, free: 12.81 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.579e-05/0.07678, allocations: 45.31 kB / 192.5 MB, free: 12.77 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.07695, allocations: 52 kB / 192.6 MB, free: 12.71 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003655/0.08062, allocations: 0.9381 MB / 193.5 MB, free: 11.73 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.08066, allocations: 4 kB / 193.5 MB, free: 11.73 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.08079, allocations: 27.94 kB / 193.5 MB, free: 11.7 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.08082, allocations: 16 kB / 193.6 MB, free: 11.69 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005347/0.08618, allocations: 1.101 MB / 194.7 MB, free: 10.59 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007494/0.09369, allocations: 3.119 MB / 197.8 MB, free: 7.332 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004233/0.09797, allocations: 1.007 MB / 198.8 MB, free: 6.277 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.766e-05/0.09807, allocations: 12.42 kB / 198.8 MB, free: 6.266 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002207/0.1003, allocations: 0.505 MB / 199.3 MB, free: 5.75 MB / 170.7 MB Notification: Performance of pre-optimization done (n=52): time 4.058e-06/0.1003, allocations: 4 kB / 199.3 MB, free: 5.746 MB / 170.7 MB Notification: Performance of matching and sorting (n=52): time 0.005907/0.1062, allocations: 1.236 MB / 200.5 MB, free: 4.5 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.1063, allocations: 59.84 kB / 200.6 MB, free: 4.43 MB / 170.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.001196/0.1075, allocations: 0.5056 MB / 201.1 MB, free: 3.914 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 9.197e-05/0.1076, allocations: 37.7 kB / 201.1 MB, free: 3.871 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.108, allocations: 370.1 kB / 201.5 MB, free: 3.508 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.1082, allocations: 169.6 kB / 201.7 MB, free: 3.34 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.161e-05/0.1083, allocations: 12 kB / 201.7 MB, free: 3.328 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1085, allocations: 342.8 kB / 202 MB, free: 2.984 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.1107, allocations: 429.7 kB / 202.4 MB, free: 2.566 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00237/0.1131, allocations: 0.6367 MB / 203.1 MB, free: 1.84 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.1153, allocations: 473.2 kB / 203.5 MB, free: 1.383 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.1154, allocations: 11.89 kB / 203.6 MB, free: 1.371 MB / 170.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005598/0.121, allocations: 1.135 MB / 204.7 MB, free: 232 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.121, allocations: 8 kB / 204.7 MB, free: 224 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.842e-05/0.1211, allocations: 8 kB / 204.7 MB, free: 216 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.435e-05/0.1211, allocations: 11.94 kB / 204.7 MB, free: 204 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1475/0.2687, allocations: 244.7 kB / 205 MB, free: 23.8 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.17e-05/0.2688, allocations: 17.12 kB / 205 MB, free: 23.8 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.2707, allocations: 180.3 kB / 205.1 MB, free: 23.8 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.2709, allocations: 33.22 kB / 205.2 MB, free: 23.8 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.0006342/0.2716, allocations: 240.7 kB / 205.4 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.2718, allocations: 57.12 kB / 205.5 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.272, allocations: 64.64 kB / 205.5 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.272, allocations: 9.25 kB / 205.5 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.272, allocations: 1.328 kB / 205.5 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.2721, allocations: 6.688 kB / 205.6 MB, free: 23.68 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006103/0.2782, allocations: 1.732 MB / 207.3 MB, free: 23.28 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.2782, allocations: 1.578 kB / 207.3 MB, free: 23.28 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.2798, allocations: 172.5 kB / 207.5 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.2799, allocations: 6.031 kB / 207.5 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.28, allocations: 14.28 kB / 207.5 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.28, allocations: 2.672 kB / 207.5 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.28, allocations: 8.531 kB / 207.5 MB, free: 23.27 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00609/0.2861, allocations: 1.437 MB / 208.9 MB, free: 22.77 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.2864, allocations: 140.2 kB / 209.1 MB, free: 22.63 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.2866, allocations: 12.34 kB / 209.1 MB, free: 22.62 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.2878, allocations: 104.9 kB / 209.2 MB, free: 22.61 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.288, allocations: 45.34 kB / 209.2 MB, free: 22.6 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-05/0.288, allocations: 24.28 kB / 209.2 MB, free: 22.59 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0007879/0.2888, allocations: 346.1 kB / 209.6 MB, free: 22.43 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.2889, allocations: 0 / 209.6 MB, free: 22.43 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0009015/0.2898, allocations: 164.6 kB / 209.7 MB, free: 22.39 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.006931/0.2967, allocations: 2.007 MB / 211.7 MB, free: 21.31 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.004464/0.3012, allocations: 0.9754 MB / 212.7 MB, free: 21.05 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.3013, allocations: 0 / 212.7 MB, free: 21.05 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.3032, allocations: 467.7 kB / 213.2 MB, free: 20.92 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009072/0.3042, allocations: 98.42 kB / 213.3 MB, free: 20.88 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3083, allocations: 2.066 MB / 215.3 MB, free: 19.4 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.3087, allocations: 0.8767 MB / 216.2 MB, free: 18.63 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000691/0.3094, allocations: 215.1 kB / 216.4 MB, free: 18.46 MB / 170.7 MB Notification: Performance of SimCode: time 1.042e-06/0.3094, allocations: 0 / 216.4 MB, free: 18.46 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.594/2.903, allocations: 10.49 MB / 226.9 MB, free: 9.551 MB / 170.7 MB