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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.705/1.705, allocations: 171.3 MB / 179.2 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.075e-05/2.083e-05, allocations: 4 kB / 222.5 MB, free: 4.754 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2332, allocations: 38.77 MB / 261.3 MB, free: 12.99 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.3543, allocations: 70.84 MB / 332.1 MB, free: 6.684 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.3546, allocations: 67.97 kB / 332.2 MB, free: 6.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06484/0.4195, allocations: 13.88 MB / 346.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.1e-06/0.4195, allocations: 0 / 346.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.124e-05/0.4196, allocations: 12 kB / 346.1 MB, free: 8.676 MB / 298.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.004159/0.4237, allocations: 1.334 MB / 347.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4238, allocations: 12.03 kB / 347.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.4241, allocations: 86.97 kB / 347.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.4257, allocations: 0.5817 MB / 348.1 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/0.4258, allocations: 23.98 kB / 348.1 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.426, allocations: 43.94 kB / 348.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001596/0.4276, allocations: 0.5923 MB / 348.7 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.429, allocations: 0.5311 MB / 349.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.4291, allocations: 0 / 349.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.694e-05/0.4292, allocations: 0 / 349.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.4292, allocations: 16 kB / 349.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005851/0.4351, allocations: 2.262 MB / 351.6 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.4363, allocations: 496.1 kB / 352 MB, free: 2.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006418/0.4369, allocations: 278.2 kB / 352.3 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.437, allocations: 8.438 kB / 352.3 MB, free: 2.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008796/0.4379, allocations: 392.6 kB / 352.7 MB, free: 1.816 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.455e-06/0.4379, allocations: 0 / 352.7 MB, free: 1.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.07839/0.5163, allocations: 10.4 MB / 363.1 MB, free: 7.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.5165, allocations: 145.3 kB / 363.2 MB, free: 7.176 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.5177, allocations: 410.2 kB / 363.6 MB, free: 6.766 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/0.518, allocations: 29.7 kB / 363.7 MB, free: 6.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005452/0.5186, allocations: 414.2 kB / 364.1 MB, free: 6.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006265/0.5193, allocations: 295.5 kB / 364.4 MB, free: 6.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.5195, allocations: 0 / 364.4 MB, free: 6.027 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002721/0.5198, allocations: 346.8 kB / 364.7 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.5223, allocations: 0.526 MB / 365.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002764/0.5251, allocations: 0.7363 MB / 366 MB, free: 4.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.5279, allocations: 0.5615 MB / 366.5 MB, free: 3.781 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.528, allocations: 0 / 366.5 MB, free: 3.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.2253/0.7533, allocations: 6.024 MB / 372.6 MB, free: 91.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/0.7534, allocations: 63.47 kB / 372.6 MB, free: 91.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.7534, allocations: 4.281 kB / 372.6 MB, free: 91.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0337/0.7871, allocations: 5.983 MB / 378.6 MB, free: 90.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009433/0.7881, allocations: 185.6 kB / 378.8 MB, free: 90.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006792/0.7949, allocations: 3.174 MB / 382 MB, free: 89.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002303/0.7972, allocations: 282.8 kB / 382.2 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.7974, allocations: 42.44 kB / 382.3 MB, free: 89.91 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbe:DUMMY_DER(fixed = false ) type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of HeatPort" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of HeatPort" type: Real 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 () * 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.0003981/0.7979, allocations: 135.7 kB / 382.4 MB, free: 89.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.7981, allocations: 82.03 kB / 382.5 MB, free: 89.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0233/0.8214, allocations: 4.665 MB / 387.2 MB, free: 88.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/0.8215, allocations: 15.95 kB / 387.2 MB, free: 88.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.799e-06/0.8215, allocations: 1.688 kB / 387.2 MB, free: 88.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/0.8215, allocations: 3.844 kB / 387.2 MB, free: 88.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.8233, allocations: 1.157 MB / 388.3 MB, free: 87.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.408e-06/0.8233, allocations: 4 kB / 388.3 MB, free: 87.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007395/0.8241, allocations: 127.9 kB / 388.5 MB, free: 87.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0351/0.8592, allocations: 5.982 MB / 394.4 MB, free: 81.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/0.8595, allocations: 11.97 kB / 394.5 MB, free: 81.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02659/0.8861, allocations: 8.687 MB / 403.1 MB, free: 72.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.8861, allocations: 1.25 kB / 403.1 MB, free: 72.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02455/0.9107, allocations: 5.409 MB / 408.6 MB, free: 67.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.9109, allocations: 144.2 kB / 408.7 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.9112, allocations: 3.984 kB / 408.7 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/0.9131, allocations: 274.4 kB / 409 MB, free: 66.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/0.9137, allocations: 132.6 kB / 409.1 MB, free: 66.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.9139, allocations: 35.97 kB / 409.1 MB, free: 66.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004031/0.9143, allocations: 306.2 kB / 409.4 MB, free: 66.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.9143, allocations: 4 kB / 409.4 MB, free: 66.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001167/0.9155, allocations: 292 kB / 409.7 MB, free: 66.05 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) * 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.0002668/0.9157, allocations: 114.7 kB / 409.8 MB, free: 65.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.9199, allocations: 1.62 MB / 411.5 MB, free: 64.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.421e-06/0.92, allocations: 4.062 kB / 411.5 MB, free: 64.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004276/0.9243, allocations: 1.234 MB / 412.7 MB, free: 63.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.9251, allocations: 87.22 kB / 412.8 MB, free: 62.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.9313, allocations: 1.888 MB / 414.7 MB, free: 61.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.9318, allocations: 0.9704 MB / 415.6 MB, free: 60.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.932, allocations: 43.42 kB / 415.7 MB, free: 60.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.962e-06/0.932, allocations: 0 / 415.7 MB, free: 60.02 MB / 314.7 MB Notification: Performance of Templates: time 0.02396/0.956, allocations: 18.03 MB / 433.7 MB, free: 42.03 MB / 314.7 MB