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.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.601/1.601, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003461, allocations: 12 kB / 233.3 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08323, allocations: 38.77 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3254/0.4087, allocations: 68.07 MB / 340.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.409, allocations: 67.97 kB / 340.2 MB, free: 14.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02107/0.4301, allocations: 5.025 MB / 345.3 MB, free: 9.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4301, allocations: 4 kB / 345.3 MB, free: 9.727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.4301, allocations: 4 kB / 345.3 MB, free: 9.723 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001283/0.4314, allocations: 0.5923 MB / 345.9 MB, free: 9.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4315, allocations: 8.031 kB / 345.9 MB, free: 9.074 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.4316, allocations: 66.53 kB / 345.9 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.949e-05/0.4317, allocations: 39.53 kB / 346 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.4321, allocations: 274.5 kB / 346.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.4322, allocations: 28.52 kB / 346.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.4323, allocations: 24 kB / 346.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007959/0.4331, allocations: 260.9 kB / 346.6 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4331, allocations: 0 / 346.6 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/0.4331, allocations: 12 kB / 346.6 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.4332, allocations: 4 kB / 346.6 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008307/0.434, allocations: 230.1 kB / 346.8 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.4366, allocations: 0.9991 MB / 347.8 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.4373, allocations: 231.1 kB / 348 MB, free: 6.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.4374, allocations: 4.188 kB / 348 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.4374, allocations: 42.75 kB / 348.1 MB, free: 6.738 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.184e-06/0.4374, allocations: 0 / 348.1 MB, free: 6.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002019/0.4395, allocations: 0.5782 MB / 348.6 MB, free: 6.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.4395, allocations: 55.41 kB / 348.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.4399, allocations: 237.8 kB / 348.9 MB, free: 5.805 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.4399, allocations: 29.7 kB / 349 MB, free: 5.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.4401, allocations: 238.6 kB / 349.2 MB, free: 5.535 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.4402, allocations: 71 kB / 349.3 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/0.4402, allocations: 4 kB / 349.3 MB, free: 5.461 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4403, allocations: 320.6 kB / 349.6 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.4407, allocations: 88.42 kB / 349.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003751/0.4411, allocations: 111.5 kB / 349.8 MB, free: 4.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003675/0.4415, allocations: 95.97 kB / 349.9 MB, free: 4.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.4415, allocations: 0 / 349.9 MB, free: 4.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001069/0.4425, allocations: 322.9 kB / 350.2 MB, free: 4.512 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.4426, allocations: 4 kB / 350.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4426, allocations: 0 / 350.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003829/0.443, allocations: 77.67 kB / 350.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.4434, allocations: 39.97 kB / 350.3 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/0.4464, allocations: 2.859 MB / 353.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.4468, allocations: 27.83 kB / 353.2 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.4468, allocations: 4 kB / 353.2 MB, free: 1.234 MB / 282.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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002171/0.447, allocations: 153.7 kB / 353.3 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.807e-05/0.4471, allocations: 35.77 kB / 353.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.4472, allocations: 22.19 kB / 353.4 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.4472, allocations: 4 kB / 353.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4472, allocations: 0 / 353.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4472, allocations: 3.984 kB / 353.4 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005116/0.4478, allocations: 341.2 kB / 353.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.4478, allocations: 0 / 353.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.448, allocations: 31.98 kB / 353.8 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.4484, allocations: 77.61 kB / 353.8 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.4484, allocations: 4 kB / 353.8 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002978/0.4514, allocations: 2.85 MB / 356.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4514, allocations: 0 / 356.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4525, allocations: 395.6 kB / 357.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.4526, allocations: 116.7 kB / 357.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.4527, allocations: 8 kB / 357.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004438/0.4531, allocations: 39.97 kB / 357.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/0.4532, allocations: 15.97 kB / 357.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.4533, allocations: 16.3 kB / 357.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002675/0.4536, allocations: 186 kB / 357.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4536, allocations: 4 kB / 357.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005428/0.4541, allocations: 91.84 kB / 357.6 MB, free: 12.5 MB / 298.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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001344/0.4555, allocations: 0.9367 MB / 358.5 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.4567, allocations: 469.8 kB / 358.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4567, allocations: 0 / 358.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006839/0.4574, allocations: 368.1 kB / 359.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.4578, allocations: 40.67 kB / 359.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003698/0.4616, allocations: 1.89 MB / 361.2 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.462, allocations: 0.7719 MB / 362 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.4622, allocations: 87.41 kB / 362.1 MB, free: 7.777 MB / 298.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4622, allocations: 0 / 362.1 MB, free: 7.777 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.595/3.057, allocations: 6.664 MB / 368.8 MB, free: 1.113 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat