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.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.003/1.003, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002717, allocations: 11.98 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04482/0.04511, allocations: 25.17 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005188/0.05034, allocations: 3.689 MB / 187.1 MB, free: 2.312 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.053, allocations: 1.238 MB / 188.3 MB, free: 1.074 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003733/0.0534, allocations: 8 kB / 188.4 MB, free: 1.066 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.0536, allocations: 75.38 kB / 188.4 MB, free: 0.9922 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000644/0.05426, allocations: 279.1 kB / 188.7 MB, free: 0.7188 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008091/0.05508, allocations: 267.5 kB / 189 MB, free: 468 kB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.05616, allocations: 0.7463 MB / 189.7 MB, free: 15.71 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.0566, allocations: 211.5 kB / 189.9 MB, free: 15.48 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000557/0.05717, allocations: 414.7 kB / 190.3 MB, free: 15.07 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008186/0.058, allocations: 0.5371 MB / 190.9 MB, free: 14.54 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.05818, allocations: 60 kB / 190.9 MB, free: 14.48 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.05841, allocations: 68 kB / 191 MB, free: 14.41 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002293/0.05865, allocations: 191.3 kB / 191.2 MB, free: 14.22 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.05888, allocations: 165.3 kB / 191.3 MB, free: 14.05 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.06003, allocations: 0.8453 MB / 192.2 MB, free: 13.21 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.06005, allocations: 0 / 192.2 MB, free: 13.21 MB / 170.7 MB Notification: Performance of FrontEnd: time 6.053e-06/0.06006, allocations: 3.984 kB / 192.2 MB, free: 13.2 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.06009, allocations: 7.938 kB / 192.2 MB, free: 13.2 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.004294/0.0644, allocations: 1.341 MB / 193.5 MB, free: 11.8 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.06446, allocations: 12.03 kB / 193.5 MB, free: 11.79 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.06475, allocations: 86.97 kB / 193.6 MB, free: 11.7 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009164/0.06568, allocations: 468.5 kB / 194.1 MB, free: 11.2 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.06576, allocations: 45.31 kB / 194.1 MB, free: 11.16 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.06596, allocations: 63.91 kB / 194.2 MB, free: 11.1 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.06963, allocations: 1.107 MB / 195.3 MB, free: 9.98 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.06969, allocations: 0 / 195.3 MB, free: 9.98 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.06983, allocations: 28 kB / 195.3 MB, free: 9.953 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.06986, allocations: 15.95 kB / 195.3 MB, free: 9.938 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005586/0.07546, allocations: 1.539 MB / 196.9 MB, free: 8.398 MB / 170.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00767/0.08317, allocations: 3.085 MB / 200 MB, free: 5.172 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00397/0.08717, allocations: 1.116 MB / 201.1 MB, free: 4.047 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.633e-05/0.08728, allocations: 12.55 kB / 201.1 MB, free: 4.035 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003001/0.09029, allocations: 0.9091 MB / 202 MB, free: 3.094 MB / 170.7 MB Notification: Performance of pre-optimization done (n=69): time 4.371e-06/0.09032, allocations: 0 / 202 MB, free: 3.094 MB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.1464/0.2367, allocations: 7.223 MB / 209.2 MB, free: 23.71 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.2369, allocations: 143 kB / 209.4 MB, free: 23.55 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007256/0.2376, allocations: 482.1 kB / 209.8 MB, free: 23.33 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.2378, allocations: 42.11 kB / 209.9 MB, free: 23.29 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.238, allocations: 372.8 kB / 210.2 MB, free: 22.96 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.2382, allocations: 233.2 kB / 210.5 MB, free: 22.79 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.963e-05/0.2383, allocations: 18.91 kB / 210.5 MB, free: 22.77 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.005e-05/0.2384, allocations: 336.8 kB / 210.8 MB, free: 22.45 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/0.2409, allocations: 0.6853 MB / 211.5 MB, free: 22.28 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/0.2435, allocations: 0.814 MB / 212.3 MB, free: 21.97 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.2459, allocations: 0.7106 MB / 213 MB, free: 21.66 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.246, allocations: 1.344 kB / 213 MB, free: 21.66 MB / 170.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01058/0.2566, allocations: 2.543 MB / 215.6 MB, free: 20.52 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.2566, allocations: 5.5 kB / 215.6 MB, free: 20.52 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.2567, allocations: 6.688 kB / 215.6 MB, free: 20.51 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/0.265, allocations: 1.559 MB / 217.1 MB, free: 19.86 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.2665, allocations: 220 kB / 217.4 MB, free: 19.79 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006791/0.2733, allocations: 4.018 MB / 221.4 MB, free: 15.71 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.2752, allocations: 231.7 kB / 221.6 MB, free: 15.48 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.2753, allocations: 31.98 kB / 221.6 MB, free: 15.45 MB / 170.7 MB Warning: Assuming fixed start value for the following 10 variables: V1.signalSource.counter:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer V2.signalSource.counter:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer T2.vbc:VARIABLE(fixed = true ) type: Real T1.vbc:VARIABLE(fixed = true ) type: Real C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real V2.signalSource.counter2:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) type: Integer V2.signalSource.T0:DISCRETE(start = V2.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real V1.signalSource.counter2:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) type: Integer V1.signalSource.T0:DISCRETE(start = V1.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, max(1.0, 1.0))) max = min(6000.0, min(6000.0, min(6000.0, 6000.0))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.V1.signalSource.counter,V1.signalSource.counter,$PRE.V2.signalSource.counter,V2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.V1.signalSource.T0,V1.signalSource.T0,$PRE.V1.signalSource.counter2,V1.signalSource.counter2,$PRE.V2.signalSource.T0,V2.signalSource.T0,$PRE.V2.signalSource.counter2,V2.signalSource.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 62 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005765/0.2759, allocations: 250.3 kB / 221.9 MB, free: 15.21 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.2761, allocations: 71.2 kB / 221.9 MB, free: 15.14 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009439/0.2855, allocations: 2.561 MB / 224.5 MB, free: 12.55 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.2856, allocations: 13.97 kB / 224.5 MB, free: 12.54 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.535e-06/0.2856, allocations: 4 kB / 224.5 MB, free: 12.54 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/0.2856, allocations: 7.938 kB / 224.5 MB, free: 12.53 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.287, allocations: 0.8842 MB / 225.4 MB, free: 11.63 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.287, allocations: 0 / 225.4 MB, free: 11.63 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.2883, allocations: 171.8 kB / 225.6 MB, free: 11.46 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008714/0.297, allocations: 1.568 MB / 227.1 MB, free: 9.887 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/0.2972, allocations: 23.97 kB / 227.2 MB, free: 9.863 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006711/0.304, allocations: 4.043 MB / 231.2 MB, free: 5.641 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.477e-06/0.304, allocations: 3.938 kB / 231.2 MB, free: 5.637 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01198/0.316, allocations: 3.358 MB / 234.6 MB, free: 2.254 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004672/0.3165, allocations: 229.8 kB / 234.8 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.3167, allocations: 20 kB / 234.8 MB, free: 1.992 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.3181, allocations: 216.6 kB / 235 MB, free: 1.781 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.3183, allocations: 68.44 kB / 235.1 MB, free: 1.715 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.3184, allocations: 27.97 kB / 235.1 MB, free: 1.688 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004062/0.3188, allocations: 326.9 kB / 235.4 MB, free: 1.371 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.3188, allocations: 0 / 235.4 MB, free: 1.371 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0009199/0.3198, allocations: 232 kB / 235.7 MB, free: 1.145 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (HeatCapacitor1.T,C2.v,T1.vbc,T2.vbc) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,V1.signalSource.T0,V1.signalSource.counter,V1.signalSource.counter2,V2.signalSource.T0,V2.signalSource.counter,V2.signalSource.counter2) * Number of discrete states: 4 (V2.signalSource.counter,V1.signalSource.counter,V2.signalSource.counter2,V1.signalSource.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 12,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002433/0.32, allocations: 129.3 kB / 235.8 MB, free: 1.008 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.00592/0.326, allocations: 1.777 MB / 237.6 MB, free: 15.22 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.759e-06/0.326, allocations: 1.688 kB / 237.6 MB, free: 15.22 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/0.3296, allocations: 1.004 MB / 238.6 MB, free: 14.21 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.3307, allocations: 147.2 kB / 238.7 MB, free: 14.06 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.3356, allocations: 2.037 MB / 240.8 MB, free: 11.99 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006811/0.3363, allocations: 0.9342 MB / 241.7 MB, free: 11.03 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.3368, allocations: 51.41 kB / 241.7 MB, free: 10.98 MB / 186.7 MB Notification: Performance of SimCode: time 2.383e-06/0.3368, allocations: 0 / 241.7 MB, free: 10.98 MB / 186.7 MB Notification: Performance of Templates: time 0.02892/0.3657, allocations: 17.52 MB / 259.3 MB, free: 9.453 MB / 202.7 MB