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.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.11, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.5083, allocations: 73.21 MB / 381.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5086, allocations: 73.05 kB / 381.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02061/0.5293, allocations: 4.9 MB / 386.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5293, allocations: 0 / 386.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.5294, allocations: 6.531 kB / 386.7 MB, free: 13.83 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00128/0.5306, allocations: 0.6018 MB / 387.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.5307, allocations: 9.766 kB / 387.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.5308, allocations: 63.69 kB / 387.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.196e-05/0.5309, allocations: 35.36 kB / 387.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.5313, allocations: 273.2 kB / 387.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.5314, allocations: 19.06 kB / 387.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.5314, allocations: 27.06 kB / 387.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008713/0.5323, allocations: 261.9 kB / 388 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.5324, allocations: 1.219 kB / 388 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.5324, allocations: 16.09 kB / 388 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.5325, allocations: 6.344 kB / 388 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008567/0.5333, allocations: 234.4 kB / 388.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.536, allocations: 0.9846 MB / 389.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007726/0.5368, allocations: 225.7 kB / 389.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.5369, allocations: 2.688 kB / 389.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.537, allocations: 37.48 kB / 389.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.755e-06/0.537, allocations: 0 / 389.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.00198/0.539, allocations: 0.5896 MB / 390.1 MB, free: 12.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.539, allocations: 57.02 kB / 390.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.5394, allocations: 236.7 kB / 390.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.5394, allocations: 25.7 kB / 390.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.75e-05/0.5395, allocations: 239.6 kB / 390.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.5396, allocations: 71.03 kB / 390.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.5396, allocations: 15.44 kB / 390.7 MB, free: 11.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.5397, allocations: 321.4 kB / 391 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.54, allocations: 81.66 kB / 391.1 MB, free: 11.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.5404, allocations: 119 kB / 391.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.5407, allocations: 101.3 kB / 391.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.5407, allocations: 0 / 391.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009913/0.5417, allocations: 321.7 kB / 391.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.5418, allocations: 3.844 kB / 391.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.5418, allocations: 0 / 391.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.5423, allocations: 80.08 kB / 391.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000376/0.5427, allocations: 44 kB / 391.8 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.5452, allocations: 2.855 MB / 394.6 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004241/0.5456, allocations: 34.03 kB / 394.6 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.5457, allocations: 11.14 kB / 394.7 MB, free: 8.781 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 (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.0002132/0.5459, allocations: 131.3 kB / 394.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.83e-05/0.546, allocations: 27.25 kB / 394.8 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.276e-05/0.546, allocations: 34.84 kB / 394.8 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5461, allocations: 3.875 kB / 394.9 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5461, allocations: 3.844 kB / 394.9 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.5461, allocations: 0 / 394.9 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.5466, allocations: 341.4 kB / 395.2 MB, free: 8.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.5466, allocations: 0 / 395.2 MB, free: 8.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.5468, allocations: 32.56 kB / 395.2 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003136/0.5472, allocations: 74 kB / 395.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.5472, allocations: 0 / 395.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/0.5496, allocations: 2.844 MB / 398.1 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5496, allocations: 7.75 kB / 398.1 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.5507, allocations: 397.1 kB / 398.5 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.5508, allocations: 105.8 kB / 398.6 MB, free: 5.586 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.295e-05/0.5509, allocations: 3.562 kB / 398.6 MB, free: 5.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.5513, allocations: 42.34 kB / 398.7 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.5514, allocations: 23.5 kB / 398.7 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.5515, allocations: 3.844 kB / 398.7 MB, free: 5.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002274/0.5517, allocations: 187.1 kB / 398.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5517, allocations: 0 / 398.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005262/0.5522, allocations: 92.47 kB / 399 MB, free: 5.488 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 (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.001385/0.5536, allocations: 0.9474 MB / 399.9 MB, free: 20.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.5548, allocations: 453.2 kB / 400.4 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5549, allocations: 0 / 400.4 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006449/0.5555, allocations: 365.5 kB / 400.7 MB, free: 20.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005763/0.5561, allocations: 47.17 kB / 400.8 MB, free: 20.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.5598, allocations: 1.893 MB / 402.7 MB, free: 19.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.5603, allocations: 0.7764 MB / 403.4 MB, free: 18.58 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.5605, allocations: 91.33 kB / 403.5 MB, free: 18.57 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5605, allocations: 0 / 403.5 MB, free: 18.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.878/3.439, allocations: 6.648 MB / 410.2 MB, free: 17.62 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat