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 0.9559/0.9559, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003596, allocations: 7.984 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0516/0.05201, allocations: 25.17 MB / 183.6 MB, free: 5.863 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2083/0.2604, allocations: 37.15 MB / 220.7 MB, free: 5.832 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.2607, allocations: 66.56 kB / 220.8 MB, free: 5.824 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0389/0.2996, allocations: 9.809 MB / 230.6 MB, free: 0.7891 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.2997, allocations: 3.984 kB / 230.6 MB, free: 0.7852 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.294e-05/0.2997, allocations: 12 kB / 230.6 MB, free: 0.7734 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.003843/0.3036, allocations: 1.062 MB / 231.7 MB, free: 15.7 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.296e-05/0.3037, allocations: 12.03 kB / 231.7 MB, free: 15.69 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002763/0.3039, allocations: 94.19 kB / 231.8 MB, free: 15.62 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002104/0.3042, allocations: 75.06 kB / 231.9 MB, free: 15.55 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007624/0.3049, allocations: 419.2 kB / 232.3 MB, free: 15.18 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.568e-05/0.305, allocations: 42.19 kB / 232.3 MB, free: 15.15 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.3052, allocations: 60.66 kB / 232.4 MB, free: 15.11 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003588/0.3088, allocations: 0.9451 MB / 233.3 MB, free: 14.36 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.3089, allocations: 0 / 233.3 MB, free: 14.36 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.309, allocations: 26.25 kB / 233.4 MB, free: 14.35 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.309, allocations: 12 kB / 233.4 MB, free: 14.34 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005373/0.3144, allocations: 1.106 MB / 234.5 MB, free: 13.47 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007535/0.322, allocations: 3.112 MB / 237.6 MB, free: 10.89 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/0.3262, allocations: 1.016 MB / 238.6 MB, free: 10.04 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.791e-05/0.3263, allocations: 12.42 kB / 238.6 MB, free: 10.02 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002115/0.3284, allocations: 0.5119 MB / 239.1 MB, free: 9.609 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 3.957e-06/0.3284, allocations: 0 / 239.1 MB, free: 9.609 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.00575/0.3342, allocations: 1.234 MB / 240.4 MB, free: 8.621 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.3343, allocations: 63.64 kB / 240.4 MB, free: 8.551 MB / 186.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.001083/0.3354, allocations: 464.8 kB / 240.9 MB, free: 8.191 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.3355, allocations: 37.58 kB / 240.9 MB, free: 8.156 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/0.3359, allocations: 370.6 kB / 241.3 MB, free: 7.852 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.3361, allocations: 172.3 kB / 241.4 MB, free: 7.707 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.107e-05/0.3362, allocations: 11.25 kB / 241.5 MB, free: 7.707 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3364, allocations: 346.3 kB / 241.8 MB, free: 7.375 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/0.3384, allocations: 429.2 kB / 242.2 MB, free: 7.059 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/0.3407, allocations: 0.6423 MB / 242.9 MB, free: 6.449 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.343, allocations: 475.8 kB / 243.3 MB, free: 6.102 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.343, allocations: 0 / 243.3 MB, free: 6.102 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.004866/0.3479, allocations: 1.136 MB / 244.5 MB, free: 5.211 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.3479, allocations: 4 kB / 244.5 MB, free: 5.207 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.348, allocations: 8 kB / 244.5 MB, free: 5.199 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.524e-05/0.348, allocations: 12 kB / 244.5 MB, free: 5.188 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00198/0.35, allocations: 254.5 kB / 244.7 MB, free: 4.945 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.3501, allocations: 12 kB / 244.7 MB, free: 4.934 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.3518, allocations: 193 kB / 244.9 MB, free: 4.758 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.3519, allocations: 37.81 kB / 245 MB, free: 4.727 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.0005996/0.3525, allocations: 240.8 kB / 245.2 MB, free: 4.535 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.3527, allocations: 59.25 kB / 245.3 MB, free: 4.477 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.3529, allocations: 68.39 kB / 245.3 MB, free: 4.41 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.3529, allocations: 8 kB / 245.3 MB, free: 4.402 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3529, allocations: 0 / 245.3 MB, free: 4.402 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.353, allocations: 0 / 245.3 MB, free: 4.402 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005601/0.3586, allocations: 1.728 MB / 247.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.3586, allocations: 0 / 247.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.3601, allocations: 179.8 kB / 247.2 MB, free: 2.441 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.3602, allocations: 4 kB / 247.2 MB, free: 2.438 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-05/0.3603, allocations: 15.98 kB / 247.3 MB, free: 2.422 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.3603, allocations: 0 / 247.3 MB, free: 2.422 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3603, allocations: 3.953 kB / 247.3 MB, free: 2.418 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/0.3664, allocations: 1.439 MB / 248.7 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.3667, allocations: 136.4 kB / 248.8 MB, free: 0.8125 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.3669, allocations: 12 kB / 248.8 MB, free: 0.8008 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.3681, allocations: 108 kB / 248.9 MB, free: 0.6953 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.3683, allocations: 44.38 kB / 249 MB, free: 0.6523 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.3684, allocations: 23.94 kB / 249 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000815/0.3692, allocations: 346.8 kB / 249.4 MB, free: 296 kB / 186.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3693, allocations: 0 / 249.4 MB, free: 296 kB / 186.7 MB Notification: Performance of remove unused functions: time 0.0009065/0.3702, allocations: 163.7 kB / 249.5 MB, free: 132 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.006384/0.3766, allocations: 2.003 MB / 251.5 MB, free: 14.09 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.004344/0.381, allocations: 0.9781 MB / 252.5 MB, free: 13.11 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.381, allocations: 1.25 kB / 252.5 MB, free: 13.11 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001992/0.383, allocations: 458.2 kB / 252.9 MB, free: 12.66 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009853/0.384, allocations: 104.4 kB / 253 MB, free: 12.57 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006331/0.3904, allocations: 6.371 MB / 259.4 MB, free: 6.004 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.391, allocations: 0.8746 MB / 260.3 MB, free: 5.102 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008371/0.3918, allocations: 215.3 kB / 260.5 MB, free: 4.891 MB / 202.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3918, allocations: 0 / 260.5 MB, free: 4.891 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.529/2.92, allocations: 10.5 MB / 271 MB, free: 10.39 MB / 218.7 MB