Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003606, allocations: 15.92 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1102, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.5121, allocations: 76.73 MB / 385.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.5125, allocations: 75.06 kB / 385.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06666/0.5791, allocations: 13.93 MB / 399.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5792, allocations: 0 / 399.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.5792, allocations: 17.56 kB / 399.3 MB, free: 13.27 MB / 314.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.006483/0.5857, allocations: 1.403 MB / 400.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5858, allocations: 7.812 kB / 400.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004611/0.5863, allocations: 110 kB / 400.8 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003185/0.5866, allocations: 96.7 kB / 400.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.5888, allocations: 0.5786 MB / 401.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.203e-05/0.5889, allocations: 49.75 kB / 401.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.5891, allocations: 60.34 kB / 401.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003423/0.5925, allocations: 0.8654 MB / 402.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.5926, allocations: 0 / 402.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.5928, allocations: 27.78 kB / 402.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.5928, allocations: 11.62 kB / 402.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005154/0.598, allocations: 1.108 MB / 403.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006913/0.6049, allocations: 2.342 MB / 405.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/0.6088, allocations: 0.8678 MB / 406.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.601e-05/0.609, allocations: 8.188 kB / 406.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002587/0.6116, allocations: 0.6244 MB / 407.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.847e-06/0.6116, allocations: 0 / 407.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.1139/0.7255, allocations: 15.34 MB / 422.8 MB, free: 4.527 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.7256, allocations: 141.3 kB / 422.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007432/0.7264, allocations: 446.3 kB / 423.4 MB, free: 4.199 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002541/0.7266, allocations: 43.64 kB / 423.4 MB, free: 4.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.7269, allocations: 413.5 kB / 423.8 MB, free: 3.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003766/0.7273, allocations: 317.2 kB / 424.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.7274, allocations: 20.28 kB / 424.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.7275, allocations: 355.1 kB / 424.5 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004629/0.7322, allocations: 1.008 MB / 425.5 MB, free: 3.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/0.737, allocations: 1.218 MB / 426.7 MB, free: 2.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00473/0.7417, allocations: 1.087 MB / 427.8 MB, free: 2.418 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.7417, allocations: 0 / 427.8 MB, free: 2.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.05923/0.801, allocations: 7.344 MB / 435.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.206e-05/0.8011, allocations: 67.02 kB / 435.2 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.8012, allocations: 4 kB / 435.2 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06169/0.8629, allocations: 6.703 MB / 441.9 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.8643, allocations: 183.4 kB / 442.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.8781, allocations: 3.703 MB / 445.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/0.8819, allocations: 295.3 kB / 446.1 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002306/0.8821, allocations: 46.05 kB / 446.1 MB, free: 2.832 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.0007142/0.8829, allocations: 211.7 kB / 446.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.8832, allocations: 83.05 kB / 446.4 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04786/0.931, allocations: 5.952 MB / 452.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/0.9311, allocations: 16.03 kB / 452.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.9312, allocations: 3.938 kB / 452.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.463e-05/0.9312, allocations: 3.984 kB / 452.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.934, allocations: 1.255 MB / 453.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.9341, allocations: 0 / 453.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.9352, allocations: 135.8 kB / 453.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06158/0.9969, allocations: 6.66 MB / 460.4 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003025/0.9972, allocations: 23.98 kB / 460.5 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05789/1.055, allocations: 10.81 MB / 471.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.055, allocations: 0 / 471.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05453/1.11, allocations: 7.118 MB / 478.4 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008669/1.111, allocations: 280 kB / 478.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/1.111, allocations: 28 kB / 478.7 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003548/1.114, allocations: 283.7 kB / 479 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008025/1.115, allocations: 140.8 kB / 479.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.116, allocations: 31.97 kB / 479.1 MB, free: 2.523 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006953/1.116, allocations: 338.9 kB / 479.5 MB, free: 2.195 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.116, allocations: 0 / 479.5 MB, free: 2.195 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00171/1.118, allocations: 332 kB / 479.8 MB, free: 1.871 MB / 362.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.05471/1.173, allocations: 7.702 MB / 487.5 MB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01353/1.186, allocations: 2.599 MB / 490.1 MB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.186, allocations: 256 / 490.1 MB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0104/1.197, allocations: 1.763 MB / 491.9 MB, free: 5.738 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/1.198, allocations: 118.1 kB / 492 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09328/1.291, allocations: 16.64 MB / 0.4967 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/1.293, allocations: 0.9665 MB / 0.4976 GB, free: 3.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/1.294, allocations: 267.3 kB / 0.4979 GB, free: 3.562 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/1.294, allocations: 0 / 0.4979 GB, free: 3.562 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.224/4.517, allocations: 20.95 MB / 0.5183 GB, free: 144.1 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat