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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.9921/0.9921, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.126e-05/2.146e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0522/0.05225, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2294/0.2817, allocations: 36.4 MB / 209.8 MB, free: 4.613 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.282, allocations: 60.34 kB / 209.8 MB, free: 4.613 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04003/0.322, allocations: 9.717 MB / 219.6 MB, free: 2.184 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3221, allocations: 0 / 219.6 MB, free: 2.184 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.552e-05/0.3222, allocations: 14.52 kB / 219.6 MB, free: 2.184 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.003717/0.3259, allocations: 0.9984 MB / 220.6 MB, free: 1.52 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.326, allocations: 11.64 kB / 220.6 MB, free: 1.516 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.3263, allocations: 73.5 kB / 220.7 MB, free: 1.48 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007053/0.327, allocations: 422 kB / 221.1 MB, free: 1.18 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.492e-05/0.3271, allocations: 15.28 kB / 221.1 MB, free: 1.18 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.3272, allocations: 34.78 kB / 221.1 MB, free: 1.18 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001474/0.3287, allocations: 0.554 MB / 221.7 MB, free: 1.16 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3301, allocations: 0.6172 MB / 222.3 MB, free: 0.9375 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.3302, allocations: 0 / 222.3 MB, free: 0.9375 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.529e-05/0.3303, allocations: 3.75 kB / 222.3 MB, free: 0.9375 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.3303, allocations: 15.25 kB / 222.3 MB, free: 0.9336 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006914/0.3372, allocations: 3.046 MB / 225.4 MB, free: 15.1 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.3389, allocations: 0.6673 MB / 226 MB, free: 14.85 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007945/0.3398, allocations: 284.9 kB / 226.3 MB, free: 14.84 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.592e-05/0.3399, allocations: 23.86 kB / 226.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007547/0.3406, allocations: 314.8 kB / 226.6 MB, free: 14.72 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 3.817e-06/0.3407, allocations: 0 / 226.6 MB, free: 14.72 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.001346/0.342, allocations: 493.6 kB / 227.1 MB, free: 14.62 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.3421, allocations: 62.38 kB / 227.2 MB, free: 14.56 MB / 186.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.0007026/0.3428, allocations: 401.6 kB / 227.6 MB, free: 14.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.3429, allocations: 44.89 kB / 227.6 MB, free: 14.37 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.3432, allocations: 370.5 kB / 228 MB, free: 14.09 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.3435, allocations: 167.1 kB / 228.1 MB, free: 13.97 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.891e-05/0.3436, allocations: 0 / 228.1 MB, free: 13.97 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3437, allocations: 343.5 kB / 228.5 MB, free: 13.64 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.3443, allocations: 223.6 kB / 228.7 MB, free: 13.64 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007241/0.345, allocations: 438.6 kB / 229.1 MB, free: 13.38 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.3457, allocations: 254.9 kB / 229.4 MB, free: 13.33 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.3457, allocations: 3.844 kB / 229.4 MB, free: 13.33 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001658/0.3474, allocations: 0.6823 MB / 230.1 MB, free: 13.19 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.3474, allocations: 7.844 kB / 230.1 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.3474, allocations: 4.781 kB / 230.1 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.194e-05/0.3475, allocations: 11.59 kB / 230.1 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/0.3495, allocations: 256.1 kB / 230.3 MB, free: 13.12 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.199e-05/0.3496, allocations: 11.5 kB / 230.3 MB, free: 13.12 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.3512, allocations: 169.8 kB / 230.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.3514, allocations: 34.41 kB / 230.5 MB, free: 13.04 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.0003752/0.3518, allocations: 159.1 kB / 230.7 MB, free: 12.91 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001252/0.353, allocations: 495.1 kB / 231.2 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3532, allocations: 58.12 kB / 231.2 MB, free: 12.77 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.3534, allocations: 61.59 kB / 231.3 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3534, allocations: 7.75 kB / 231.3 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3534, allocations: 0 / 231.3 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3535, allocations: 3.984 kB / 231.3 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002729/0.3562, allocations: 1.285 MB / 232.6 MB, free: 12.23 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.3563, allocations: 3.984 kB / 232.6 MB, free: 12.23 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.3577, allocations: 170.8 kB / 232.8 MB, free: 12.19 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.511e-05/0.3578, allocations: 4 kB / 232.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.131e-05/0.3579, allocations: 11.05 kB / 232.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.3579, allocations: 3.875 kB / 232.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3579, allocations: 0 / 232.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.3598, allocations: 0.8692 MB / 233.6 MB, free: 11.97 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3601, allocations: 139.2 kB / 233.8 MB, free: 11.84 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.3603, allocations: 10.11 kB / 233.8 MB, free: 11.83 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.3616, allocations: 103.3 kB / 233.9 MB, free: 11.79 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.3618, allocations: 48.14 kB / 233.9 MB, free: 11.77 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.3619, allocations: 21.98 kB / 234 MB, free: 11.77 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0004913/0.3624, allocations: 298 kB / 234.3 MB, free: 11.66 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3624, allocations: 0 / 234.3 MB, free: 11.66 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0009243/0.3633, allocations: 148 kB / 234.4 MB, free: 11.64 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.002415/0.3657, allocations: 1.431 MB / 235.8 MB, free: 10.83 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.3674, allocations: 0.5682 MB / 236.4 MB, free: 10.36 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.3674, allocations: 0 / 236.4 MB, free: 10.36 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007101/0.3681, allocations: 269.5 kB / 236.7 MB, free: 10.11 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009286/0.3691, allocations: 74.03 kB / 236.7 MB, free: 10.03 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.3722, allocations: 0.9232 MB / 237.7 MB, free: 9.055 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.3728, allocations: 0.8745 MB / 238.5 MB, free: 8.156 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007973/0.3736, allocations: 207.4 kB / 238.7 MB, free: 7.957 MB / 186.7 MB Notification: Performance of SimCode: time 3.557e-06/0.3736, allocations: 4 kB / 238.7 MB, free: 7.953 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.564/2.937, allocations: 10.4 MB / 249.1 MB, free: 13.56 MB / 202.7 MB