Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.613/1.613, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003657, allocations: 8 kB / 233.1 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07075/0.07114, allocations: 38.78 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005577/0.07677, allocations: 3.749 MB / 275.7 MB, free: 8.426 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.0798, allocations: 1.304 MB / 277 MB, free: 7.121 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005497/0.0804, allocations: 15.94 kB / 277 MB, free: 7.105 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.0806, allocations: 75.36 kB / 277.1 MB, free: 7.031 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006855/0.0813, allocations: 251.2 kB / 277.3 MB, free: 6.785 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009162/0.08223, allocations: 271.5 kB / 277.6 MB, free: 6.52 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.08358, allocations: 0.7462 MB / 278.3 MB, free: 5.77 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.08402, allocations: 199.6 kB / 278.5 MB, free: 5.562 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000666/0.0847, allocations: 434.6 kB / 278.9 MB, free: 5.137 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.0855, allocations: 0.5021 MB / 279.4 MB, free: 4.633 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.08567, allocations: 60 kB / 279.5 MB, free: 4.574 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.0859, allocations: 64 kB / 279.6 MB, free: 4.512 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.08612, allocations: 175.3 kB / 279.7 MB, free: 4.34 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.08637, allocations: 161.3 kB / 279.9 MB, free: 4.176 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.08753, allocations: 0.8105 MB / 280.7 MB, free: 3.363 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.148e-06/0.08755, allocations: 0 / 280.7 MB, free: 3.363 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.56e-06/0.08757, allocations: 3.938 kB / 280.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.08759, allocations: 0 / 280.7 MB, free: 3.359 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.003772/0.09137, allocations: 1.33 MB / 282 MB, free: 1.965 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.09143, allocations: 12.03 kB / 282.1 MB, free: 1.953 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.0917, allocations: 86.97 kB / 282.1 MB, free: 1.867 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008833/0.0926, allocations: 456.5 kB / 282.6 MB, free: 1.379 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.09269, allocations: 53.25 kB / 282.6 MB, free: 1.324 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.09287, allocations: 64 kB / 282.7 MB, free: 1.262 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.0956, allocations: 0.8613 MB / 283.6 MB, free: 404 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.688e-05/0.09566, allocations: 8 kB / 283.6 MB, free: 396 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.09578, allocations: 27.92 kB / 283.6 MB, free: 368 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.09581, allocations: 16 kB / 283.6 MB, free: 352 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003939/0.09976, allocations: 1.102 MB / 284.7 MB, free: 15.24 MB / 250.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.007193/0.107, allocations: 2.535 MB / 287.2 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003396/0.1104, allocations: 0.8793 MB / 288.1 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.607e-05/0.1105, allocations: 12.42 kB / 288.1 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002267/0.1128, allocations: 0.6223 MB / 288.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 4.259e-06/0.1128, allocations: 0 / 288.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.2954/0.4083, allocations: 16.48 MB / 305.2 MB, free: 31.06 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.4084, allocations: 144.4 kB / 305.4 MB, free: 30.89 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007301/0.4091, allocations: 0.4997 MB / 305.9 MB, free: 30.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.4093, allocations: 46.86 kB / 305.9 MB, free: 30.62 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.4095, allocations: 411.1 kB / 306.3 MB, free: 30.29 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.4098, allocations: 318.6 kB / 306.6 MB, free: 30.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.41, allocations: 21.78 kB / 306.7 MB, free: 30.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.4101, allocations: 346.1 kB / 307 MB, free: 29.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.4134, allocations: 1.015 MB / 308 MB, free: 29.39 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003422/0.4169, allocations: 1.215 MB / 309.2 MB, free: 28.7 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003327/0.4202, allocations: 1.084 MB / 310.3 MB, free: 28.16 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/0.4203, allocations: 1.906 kB / 310.3 MB, free: 28.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03439/0.4547, allocations: 7.276 MB / 317.6 MB, free: 23.7 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/0.4548, allocations: 60.19 kB / 317.7 MB, free: 23.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.4548, allocations: 4 kB / 317.7 MB, free: 23.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04222/0.497, allocations: 6.713 MB / 324.4 MB, free: 16.9 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009424/0.498, allocations: 179.8 kB / 324.5 MB, free: 16.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/0.5097, allocations: 3.859 MB / 328.4 MB, free: 12.81 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002508/0.5123, allocations: 295.7 kB / 328.7 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.5124, allocations: 43.97 kB / 328.7 MB, free: 12.48 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005288/0.513, allocations: 222.7 kB / 329 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.5132, allocations: 75.06 kB / 329 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03403/0.5472, allocations: 6.733 MB / 335.8 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/0.5473, allocations: 15.95 kB / 335.8 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.692e-06/0.5473, allocations: 3.312 kB / 335.8 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.5474, allocations: 3.984 kB / 335.8 MB, free: 5.414 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.5491, allocations: 1.26 MB / 337 MB, free: 4.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.758e-06/0.5491, allocations: 0 / 337 MB, free: 4.145 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007343/0.5499, allocations: 123.9 kB / 337.2 MB, free: 4.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03857/0.5884, allocations: 6.674 MB / 343.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.5887, allocations: 23.98 kB / 343.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03797/0.6267, allocations: 10.57 MB / 354.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.6267, allocations: 4 kB / 354.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03876/0.6655, allocations: 7.907 MB / 362.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.6658, allocations: 144.2 kB / 362.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.6661, allocations: 24 kB / 362.5 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/0.6681, allocations: 277 kB / 362.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/0.6687, allocations: 152.7 kB / 362.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.6688, allocations: 27.98 kB / 363 MB, free: 10.03 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00057/0.6694, allocations: 346.8 kB / 363.3 MB, free: 9.688 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.6694, allocations: 4 kB / 363.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001247/0.6707, allocations: 320 kB / 363.6 MB, free: 9.371 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003177/0.671, allocations: 135.6 kB / 363.7 MB, free: 9.238 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.01046/0.6815, allocations: 2.75 MB / 366.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.063e-06/0.6815, allocations: 0 / 366.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005892/0.6874, allocations: 1.624 MB / 368.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.6883, allocations: 114.2 kB / 368.2 MB, free: 4.723 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009308/0.6976, allocations: 2.909 MB / 371.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.6984, allocations: 0.9704 MB / 372.1 MB, free: 0.793 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.6986, allocations: 35.42 kB / 372.1 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of SimCode: time 1.734e-06/0.6986, allocations: 0 / 372.1 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of Templates: time 0.02976/0.7284, allocations: 18 MB / 390.1 MB, free: 14.75 MB / 314.7 MB