Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.623/1.623, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004708, allocations: 8 kB / 233.3 MB, free: 2.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.124, allocations: 38.77 MB / 272.1 MB, free: 12.1 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3466/0.4707, allocations: 71.6 MB / 343.7 MB, free: 2.023 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.471, allocations: 72.28 kB / 343.8 MB, free: 1.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0713/0.5423, allocations: 14.01 MB / 357.8 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5424, allocations: 0 / 357.8 MB, free: 5.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.386e-05/0.5424, allocations: 16 kB / 357.8 MB, free: 5.727 MB / 282.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.006539/0.549, allocations: 1.412 MB / 359.2 MB, free: 4.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.549, allocations: 12.03 kB / 359.2 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003137/0.5494, allocations: 110.5 kB / 359.3 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.5497, allocations: 90.97 kB / 359.4 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.5517, allocations: 0.5808 MB / 360 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.5518, allocations: 47.61 kB / 360 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.5519, allocations: 66.44 kB / 360.1 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.5555, allocations: 0.8586 MB / 361 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.155e-05/0.5556, allocations: 0 / 361 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.5557, allocations: 22 kB / 361 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.5557, allocations: 19.98 kB / 361 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005243/0.561, allocations: 1.102 MB / 362.1 MB, free: 1.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006816/0.5678, allocations: 2.36 MB / 364.5 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004054/0.5719, allocations: 0.8687 MB / 365.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.014e-05/0.5721, allocations: 8.422 kB / 365.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002738/0.5748, allocations: 0.6251 MB / 366 MB, free: 14.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.956e-06/0.5748, allocations: 0 / 366 MB, free: 14.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1204/0.6953, allocations: 15.41 MB / 381.4 MB, free: 1.078 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.6954, allocations: 144.6 kB / 381.5 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008403/0.6963, allocations: 449.4 kB / 381.9 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.6965, allocations: 44.33 kB / 382 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.6969, allocations: 420.8 kB / 382.4 MB, free: 196 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/0.6974, allocations: 315.5 kB / 382.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.6976, allocations: 22 kB / 382.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.6977, allocations: 349.1 kB / 383.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004965/0.7027, allocations: 1.012 MB / 384.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00525/0.708, allocations: 1.222 MB / 385.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005084/0.7131, allocations: 1.083 MB / 386.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.859e-05/0.7132, allocations: 4 kB / 386.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06029/0.7735, allocations: 7.361 MB / 393.8 MB, free: 5.766 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.668e-05/0.7736, allocations: 67.53 kB / 393.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.7736, allocations: 8 kB / 393.8 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06215/0.8358, allocations: 6.727 MB / 400.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.8373, allocations: 179.7 kB / 400.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/0.8515, allocations: 3.735 MB / 404.5 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003654/0.8552, allocations: 295.9 kB / 404.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.8554, allocations: 43.98 kB / 404.8 MB, free: 10.64 MB / 330.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.0006693/0.8561, allocations: 225.7 kB / 405 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.8563, allocations: 86.98 kB / 405.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04725/0.9036, allocations: 5.942 MB / 411 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.9036, allocations: 12 kB / 411.1 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.9037, allocations: 0 / 411.1 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.587e-05/0.9037, allocations: 3.984 kB / 411.1 MB, free: 4.348 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.9062, allocations: 1.26 MB / 412.3 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.9063, allocations: 0 / 412.3 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.9073, allocations: 127.8 kB / 412.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06133/0.9687, allocations: 6.684 MB / 419.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003089/0.969, allocations: 27.94 kB / 419.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05618/1.025, allocations: 10.87 MB / 430 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/1.025, allocations: 3.984 kB / 430 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2719/1.297, allocations: 7.134 MB / 437.2 MB, free: 111.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/1.298, allocations: 142 kB / 437.3 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003285/1.298, allocations: 26.94 kB / 437.3 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003296/1.301, allocations: 283 kB / 437.6 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006954/1.302, allocations: 142.5 kB / 437.7 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/1.302, allocations: 34.62 kB / 437.8 MB, free: 111.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005741/1.303, allocations: 342.4 kB / 438.1 MB, free: 111.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.303, allocations: 0 / 438.1 MB, free: 111.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001439/1.304, allocations: 327.9 kB / 438.4 MB, free: 111.2 MB / 346.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.05163/1.356, allocations: 7.72 MB / 446.2 MB, free: 110.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/1.368, allocations: 2.608 MB / 448.8 MB, free: 110.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/1.368, allocations: 2.438 kB / 448.8 MB, free: 110.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009669/1.378, allocations: 1.768 MB / 450.5 MB, free: 109.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/1.379, allocations: 112.2 kB / 450.6 MB, free: 109.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1025/1.481, allocations: 16.71 MB / 467.3 MB, free: 97.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/1.482, allocations: 0.9693 MB / 468.3 MB, free: 96.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008777/1.483, allocations: 271.3 kB / 468.6 MB, free: 96.3 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/1.483, allocations: 0 / 468.6 MB, free: 96.3 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.84/4.323, allocations: 21.11 MB / 489.7 MB, free: 75.25 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat