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.HeatingResistor.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.HeatingResistor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004818/0.0004819, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09632, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.4913, allocations: 72.98 MB / 381.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.4916, allocations: 73.47 kB / 381.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01129/0.5029, allocations: 2.706 MB / 384.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.503, allocations: 0 / 384.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.503, allocations: 2.75 kB / 384.3 MB, free: 13.98 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005918/0.5036, allocations: 429.8 kB / 384.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.5036, allocations: 8.25 kB / 384.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.5037, allocations: 47.08 kB / 384.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.5038, allocations: 18.97 kB / 384.8 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.5041, allocations: 205 kB / 385 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.5041, allocations: 9.234 kB / 385 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.5041, allocations: 10.25 kB / 385 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.5045, allocations: 130.8 kB / 385.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5045, allocations: 1.375 kB / 385.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.5045, allocations: 6.75 kB / 385.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.5046, allocations: 2.75 kB / 385.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.5049, allocations: 77.98 kB / 385.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.5059, allocations: 0.5345 MB / 385.8 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.5063, allocations: 86.38 kB / 385.8 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.5064, allocations: 5.281 kB / 385.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.5064, allocations: 31.78 kB / 385.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 2.395e-06/0.5064, allocations: 0 / 385.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0009807/0.5074, allocations: 265.2 kB / 386.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.456e-05/0.5074, allocations: 51.41 kB / 386.2 MB, free: 12.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.5076, allocations: 132.6 kB / 386.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.5076, allocations: 26.67 kB / 386.3 MB, free: 12.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.903e-05/0.5077, allocations: 190.1 kB / 386.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.5077, allocations: 27.19 kB / 386.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.5077, allocations: 0 / 386.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.5078, allocations: 319.4 kB / 386.9 MB, free: 12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.5079, allocations: 26.59 kB / 386.9 MB, free: 12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.5081, allocations: 39.5 kB / 386.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.5082, allocations: 37.2 kB / 387 MB, free: 11.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5082, allocations: 0 / 387 MB, free: 11.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004623/0.5087, allocations: 139.4 kB / 387.1 MB, free: 11.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.5087, allocations: 10.28 kB / 387.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5087, allocations: 0 / 387.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.509, allocations: 39.62 kB / 387.2 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5091, allocations: 14.95 kB / 387.2 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.5108, allocations: 1.518 MB / 388.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.511, allocations: 12.81 kB / 388.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.511, allocations: 2.688 kB / 388.7 MB, free: 10.54 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.5112, allocations: 124.8 kB / 388.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.5112, allocations: 12.78 kB / 388.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.5113, allocations: 9.875 kB / 388.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.5113, allocations: 1.406 kB / 388.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5113, allocations: 6.062 kB / 388.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.5113, allocations: 0 / 388.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.5116, allocations: 211.6 kB / 389.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5116, allocations: 0 / 389.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.209e-05/0.5117, allocations: 9.656 kB / 389.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.5119, allocations: 38.53 kB / 389.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.5119, allocations: 4.969 kB / 389.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/0.5134, allocations: 1.519 MB / 390.6 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5134, allocations: 1.328 kB / 390.6 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.5139, allocations: 220.5 kB / 390.8 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.5139, allocations: 87.8 kB / 390.9 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.514, allocations: 1.344 kB / 390.9 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.5142, allocations: 11.28 kB / 390.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.5142, allocations: 8.469 kB / 391 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.5142, allocations: 5.078 kB / 391 MB, free: 8.582 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.637e-05/0.5143, allocations: 109.1 kB / 391.1 MB, free: 8.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5144, allocations: 0 / 391.1 MB, free: 8.508 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005046/0.5149, allocations: 40.66 kB / 391.1 MB, free: 8.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006389/0.5155, allocations: 0.7599 MB / 391.9 MB, free: 7.816 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005157/0.5161, allocations: 201.7 kB / 392.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5161, allocations: 0 / 392.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000275/0.5164, allocations: 161.9 kB / 392.2 MB, free: 7.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.5167, allocations: 16.61 kB / 392.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.5184, allocations: 1.104 MB / 393.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.5186, allocations: 0.7138 MB / 394.1 MB, free: 6.074 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.828e-05/0.5187, allocations: 33.69 kB / 394.1 MB, free: 6.066 MB / 314.7 MB Notification: Performance of SimCode: time 8.91e-07/0.5187, allocations: 0 / 394.1 MB, free: 6.066 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.57/3.089, allocations: 2.447 MB / 396.5 MB, free: 5.93 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat does not exist to compare? outputFormat=mat