Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005687/0.0005688, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1176, allocations: 44.5 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00871/0.1264, allocations: 3.764 MB / 312.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004566/0.131, allocations: 1.332 MB / 313.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007182/0.1318, allocations: 11.94 kB / 313.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.1321, allocations: 75.36 kB / 313.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.1333, allocations: 255.2 kB / 313.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.1347, allocations: 267.5 kB / 314 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002392/0.1371, allocations: 0.7463 MB / 314.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008453/0.138, allocations: 199.6 kB / 315 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.1395, allocations: 438.6 kB / 315.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.1407, allocations: 0.4982 MB / 315.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002641/0.141, allocations: 60 kB / 316 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.1413, allocations: 56 kB / 316 MB, free: 9.309 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.1417, allocations: 183.3 kB / 316.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.142, allocations: 165.3 kB / 316.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.1432, allocations: 0.8065 MB / 317.2 MB, free: 8.152 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.101e-06/0.1432, allocations: 4 kB / 317.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1432, allocations: 0 / 317.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.1432, allocations: 0 / 317.2 MB, free: 8.148 MB / 266.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.003746/0.147, allocations: 1.321 MB / 318.5 MB, free: 6.762 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1471, allocations: 11.97 kB / 318.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002384/0.1473, allocations: 86.97 kB / 318.6 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008578/0.1482, allocations: 452.6 kB / 319 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.818e-05/0.1483, allocations: 49.31 kB / 319.1 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1484, allocations: 64 kB / 319.1 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.1512, allocations: 0.8652 MB / 320 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.1512, allocations: 3.984 kB / 320 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.1513, allocations: 28 kB / 320 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.1514, allocations: 20 kB / 320.1 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003921/0.1553, allocations: 1.094 MB / 321.2 MB, free: 4.055 MB / 266.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.006011/0.1614, allocations: 2.535 MB / 323.7 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002973/0.1644, allocations: 0.8676 MB / 324.6 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.985e-05/0.1644, allocations: 16.36 kB / 324.6 MB, free: 492 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002103/0.1666, allocations: 0.6262 MB / 325.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=54): time 3.927e-06/0.1666, allocations: 0 / 325.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=94): time 0.08481/0.2514, allocations: 16.39 MB / 341.6 MB, free: 15.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.2516, allocations: 141.5 kB / 341.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008586/0.2525, allocations: 0.5028 MB / 342.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.2527, allocations: 41.7 kB / 342.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.2531, allocations: 414.2 kB / 342.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004392/0.2535, allocations: 311.5 kB / 343 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.2537, allocations: 24 kB / 343 MB, free: 13.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.2539, allocations: 346.8 kB / 343.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003698/0.2576, allocations: 1.009 MB / 344.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003976/0.2616, allocations: 1.221 MB / 345.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003783/0.2654, allocations: 1.084 MB / 346.7 MB, free: 10.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.122e-06/0.2655, allocations: 0 / 346.7 MB, free: 10.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03843/0.3039, allocations: 7.255 MB / 353.9 MB, free: 2.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.259e-05/0.3041, allocations: 67.41 kB / 354 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.885e-05/0.3041, allocations: 7.984 kB / 354 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03988/0.344, allocations: 6.684 MB / 360.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009043/0.3449, allocations: 183.7 kB / 360.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.3569, allocations: 3.839 MB / 364.7 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002375/0.3593, allocations: 291.8 kB / 365 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.3596, allocations: 43.98 kB / 365 MB, free: 7.652 MB / 314.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.0006041/0.3602, allocations: 221.7 kB / 365.2 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.3604, allocations: 83.05 kB / 365.3 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03538/0.3958, allocations: 6.711 MB / 372 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.3959, allocations: 12 kB / 372 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3959, allocations: 256 / 372 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.3959, allocations: 3.984 kB / 372 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2016/0.5975, allocations: 1.233 MB / 373.3 MB, free: 63.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.5976, allocations: 0.5 kB / 373.3 MB, free: 63.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007465/0.5983, allocations: 122.6 kB / 373.4 MB, free: 63.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03817/0.6365, allocations: 6.655 MB / 380 MB, free: 63.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.6367, allocations: 25.53 kB / 380.1 MB, free: 63.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.036/0.6728, allocations: 10.52 MB / 390.6 MB, free: 58.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.085e-06/0.6728, allocations: 10.8 kB / 390.6 MB, free: 58.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03537/0.7082, allocations: 7.898 MB / 398.5 MB, free: 50.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005938/0.7088, allocations: 272 kB / 398.8 MB, free: 50.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.709, allocations: 27.94 kB / 398.8 MB, free: 50.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/0.7109, allocations: 280.3 kB / 399.1 MB, free: 49.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005101/0.7115, allocations: 148.7 kB / 399.2 MB, free: 49.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.7116, allocations: 31.97 kB / 399.2 MB, free: 49.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000436/0.712, allocations: 338.9 kB / 399.6 MB, free: 49.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.7121, allocations: 0 / 399.6 MB, free: 49.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001092/0.7132, allocations: 324.8 kB / 399.9 MB, free: 49.04 MB / 314.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.0002546/0.7134, allocations: 132.9 kB / 400 MB, free: 48.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.009147/0.7226, allocations: 2.743 MB / 402.8 MB, free: 46.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.915e-06/0.7226, allocations: 2.297 kB / 402.8 MB, free: 46.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005086/0.7277, allocations: 1.622 MB / 404.4 MB, free: 44.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.7285, allocations: 103.9 kB / 404.5 MB, free: 44.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008161/0.7367, allocations: 2.923 MB / 407.4 MB, free: 41.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.7371, allocations: 0.9704 MB / 408.4 MB, free: 40.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.7373, allocations: 39.42 kB / 408.4 MB, free: 40.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.486e-06/0.7374, allocations: 0 / 408.4 MB, free: 40.43 MB / 314.7 MB Notification: Performance of Templates: time 0.0233/0.7607, allocations: 17.88 MB / 426.3 MB, free: 22.55 MB / 314.7 MB