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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadModel(ModelicaTest): time 2.627/2.627, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004796/0.00048, allocations: 8 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.391, allocations: 54.87 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002417/0.3935, allocations: 1.138 MB / 370.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3946, allocations: 413.9 kB / 371.3 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.273e-05/0.3948, allocations: 0 / 371.3 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.3948, allocations: 8 kB / 371.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.52e-05/0.3949, allocations: 3.938 kB / 371.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.3951, allocations: 11.97 kB / 371.4 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.22e-05/0.3952, allocations: 19.97 kB / 371.4 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3953, allocations: 11.94 kB / 371.4 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.3955, allocations: 19.91 kB / 371.4 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.056e-05/0.3956, allocations: 11.98 kB / 371.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.3956, allocations: 3.938 kB / 371.4 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.3956, allocations: 8 kB / 371.4 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.3957, allocations: 0 / 371.4 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.961e-05/0.3957, allocations: 33.7 kB / 371.5 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.908e-05/0.3958, allocations: 15.97 kB / 371.5 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3958, allocations: 0 / 371.5 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3958, allocations: 0 / 371.5 MB, free: 9.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.3958, allocations: 0 / 371.5 MB, free: 9.027 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.0006548/0.3965, allocations: 351.8 kB / 371.8 MB, free: 8.637 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.3966, allocations: 12.03 kB / 371.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.3966, allocations: 7.906 kB / 371.9 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.3968, allocations: 171 kB / 372 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3969, allocations: 3.938 kB / 372 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.3969, allocations: 4 kB / 372 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.3972, allocations: 67.33 kB / 372.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3972, allocations: 0 / 372.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3972, allocations: 4 kB / 372.1 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3973, allocations: 3.953 kB / 372.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.3975, allocations: 23.98 kB / 372.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006737/0.3982, allocations: 253 kB / 372.4 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.3984, allocations: 42.5 kB / 372.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.902e-05/0.3984, allocations: 0 / 372.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.3985, allocations: 34.56 kB / 372.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 2.645e-06/0.3985, allocations: 0 / 372.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004809/0.399, allocations: 77.69 kB / 372.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/0.3991, allocations: 81.05 kB / 372.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.3993, allocations: 109.8 kB / 372.7 MB, free: 7.605 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.3993, allocations: 29.7 kB / 372.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3994, allocations: 150.6 kB / 372.9 MB, free: 7.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.3995, allocations: 15.78 kB / 372.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-06/0.3995, allocations: 0 / 372.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.3997, allocations: 318.8 kB / 373.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3999, allocations: 16.03 kB / 373.2 MB, free: 7.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.4, allocations: 25.7 kB / 373.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.4001, allocations: 12.08 kB / 373.3 MB, free: 7.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.4002, allocations: 0 / 373.3 MB, free: 7.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003275/0.4005, allocations: 65.7 kB / 373.3 MB, free: 6.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.4005, allocations: 8 kB / 373.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4006, allocations: 0 / 373.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.4006, allocations: 7.891 kB / 373.4 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.4008, allocations: 7.984 kB / 373.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4008, allocations: 0 / 373.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.4009, allocations: 11.98 kB / 373.4 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.401, allocations: 4.312 kB / 373.4 MB, free: 6.918 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 0.0001527/0.4011, allocations: 109.8 kB / 373.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.525e-05/0.4012, allocations: 8 kB / 373.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.912e-05/0.4013, allocations: 3.531 kB / 373.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4013, allocations: 0 / 373.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.4013, allocations: 3.953 kB / 373.5 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.996e-05/0.4014, allocations: 85.02 kB / 373.6 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.4014, allocations: 0 / 373.6 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.4016, allocations: 11.98 kB / 373.6 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.749e-05/0.4018, allocations: 15.98 kB / 373.6 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004241/0.4022, allocations: 140.9 kB / 373.7 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004157/0.4026, allocations: 230.8 kB / 374 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001197/0.4028, allocations: 15.98 kB / 374 MB, free: 6.254 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.35e-05/0.4029, allocations: 95.2 kB / 374.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of Backend: time 7.21e-07/0.4029, allocations: 0 / 374.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005702/0.4035, allocations: 90.39 kB / 374.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of SimCode: time 0.0007756/0.4043, allocations: 0.6167 MB / 374.8 MB, free: 5.395 MB / 298.7 MB [CodegenCppOld.tpl:12401:11-12401:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 1 . Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.y found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.amplitude found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.freqHz found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.offset found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.phase found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uHigh found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uLow found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.pre_y_start found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.u found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.amplitude found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.amplitude (no alias) initial: 1.0 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.freqHz found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: Signal.freqHz (no alias) initial: 1.0 no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.offset found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: Signal.offset (no alias) initial: 0.0 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.phase found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: Signal.phase (no alias) initial: 0.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.startTime found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: Signal.startTime (no alias) initial: 0.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uHigh found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: hysteresis.uHigh (no alias) initial: 0.5 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uLow found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: hysteresis.uLow (no alias) initial: -0.5 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: hysteresis.y (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.pre_y_start found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: hysteresis.pre_y_start (no alias) initial: false no arrCref index:(11) []