Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.308/2.308, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000419/0.0004193, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001909/0.3307, allocations: 1.134 MB / 370.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008472/0.3315, allocations: 418 kB / 370.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.3316, allocations: 4 kB / 370.8 MB, free: 9.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.049e-05/0.3316, allocations: 3.938 kB / 370.8 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.768e-05/0.3317, allocations: 0 / 370.8 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.3319, allocations: 19.91 kB / 370.8 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.438e-05/0.3319, allocations: 19.97 kB / 370.9 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.086e-05/0.332, allocations: 8 kB / 370.9 MB, free: 9.109 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.702e-05/0.3321, allocations: 15.92 kB / 370.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.3322, allocations: 19.91 kB / 370.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.3322, allocations: 0 / 370.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.709e-05/0.3323, allocations: 4 kB / 370.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.408e-05/0.3323, allocations: 4 kB / 370.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.3323, allocations: 29.7 kB / 370.9 MB, free: 9.031 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.06e-05/0.3324, allocations: 15.97 kB / 370.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.3324, allocations: 0 / 370.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3324, allocations: 0 / 370.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3324, allocations: 4 kB / 371 MB, free: 9.012 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004846/0.3329, allocations: 352.2 kB / 371.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.333, allocations: 11.97 kB / 371.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.333, allocations: 30.56 kB / 371.3 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.3331, allocations: 11.89 kB / 371.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3332, allocations: 175 kB / 371.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3332, allocations: 0 / 371.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.3332, allocations: 4 kB / 371.5 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.3334, allocations: 59.39 kB / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3335, allocations: 0 / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3335, allocations: 3.953 kB / 371.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3335, allocations: 4 kB / 371.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.3337, allocations: 23.92 kB / 371.6 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004272/0.3341, allocations: 261 kB / 371.9 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.3342, allocations: 34.56 kB / 371.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.3343, allocations: 0 / 371.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.3343, allocations: 42.58 kB / 371.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.373e-06/0.3343, allocations: 3.938 kB / 371.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003285/0.3347, allocations: 73.52 kB / 372 MB, free: 7.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.3347, allocations: 81.11 kB / 372.1 MB, free: 7.664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.125e-05/0.3348, allocations: 105.8 kB / 372.2 MB, free: 7.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.3349, allocations: 25.83 kB / 372.2 MB, free: 7.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.973e-05/0.3349, allocations: 158.6 kB / 372.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.335, allocations: 15.83 kB / 372.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.299e-06/0.335, allocations: 0 / 372.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3351, allocations: 314.8 kB / 372.7 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.964e-05/0.3352, allocations: 12 kB / 372.7 MB, free: 7.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.13e-05/0.3353, allocations: 29.7 kB / 372.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.771e-05/0.3354, allocations: 20.02 kB / 372.8 MB, free: 6.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3354, allocations: 0 / 372.8 MB, free: 6.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002033/0.3356, allocations: 57.62 kB / 372.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3357, allocations: 4 kB / 372.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3357, allocations: 3.953 kB / 372.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3357, allocations: 4 kB / 372.8 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.122e-05/0.3358, allocations: 15.98 kB / 372.8 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3358, allocations: 320 / 372.9 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.3359, allocations: 11.98 kB / 372.9 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.3359, allocations: 0 / 372.9 MB, free: 6.863 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.327e-05/0.336, allocations: 113.8 kB / 373 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.02e-05/0.3361, allocations: 0 / 373 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.3361, allocations: 11.53 kB / 373 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3361, allocations: 3.953 kB / 373 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3362, allocations: 4 kB / 373 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3362, allocations: 0 / 373 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.3364, allocations: 161.7 kB / 373.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3364, allocations: 0 / 373.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.3364, allocations: 8.125 kB / 373.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.3365, allocations: 0 / 373.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.3365, allocations: 7.922 kB / 373.2 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.3365, allocations: 3.984 kB / 373.2 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3365, allocations: 3.953 kB / 373.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.3368, allocations: 159.4 kB / 373.3 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.3368, allocations: 81.11 kB / 373.4 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.3369, allocations: 3.938 kB / 373.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.337, allocations: 11.98 kB / 373.4 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.3371, allocations: 15.97 kB / 373.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.3371, allocations: 0 / 373.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.979e-05/0.3372, allocations: 87.28 kB / 373.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3372, allocations: 0 / 373.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002668/0.3375, allocations: 4 kB / 373.5 MB, free: 6.102 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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006749/0.3381, allocations: 0.6889 MB / 374.2 MB, free: 5.383 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.3384, allocations: 31.98 kB / 374.2 MB, free: 5.352 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3384, allocations: 0 / 374.2 MB, free: 5.352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.074e-05/0.3385, allocations: 15.98 kB / 374.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.3387, allocations: 8.031 kB / 374.3 MB, free: 5.328 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.3392, allocations: 199.9 kB / 374.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.3396, allocations: 0.6809 MB / 375.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.728e-05/0.3396, allocations: 15.42 kB / 375.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3396, allocations: 0 / 375.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.187/2.526, allocations: 0.857 MB / 376 MB, free: 3.508 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis_res.mat failed! " Variables in the reference:time,hysteresis.y Variables in the result:Signal.amplitude,Signal.freqHz,Signal.offset,Signal.phase,Signal.startTime,Signal.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time