Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestBooleanFunctions.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.Math.TestBooleanFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestBooleanFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 234.9 MB / 251.1 MB, free: 9.488 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004367, allocations: 12 kB / 314.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3882, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.0006935/0.389, allocations: 220.4 kB / 370 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009756/0.39, allocations: 318.2 kB / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.85e-05/0.39, allocations: 0 / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.3901, allocations: 0 / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3901, allocations: 0 / 370.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007889/0.3909, allocations: 135.7 kB / 370.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.789e-05/0.3909, allocations: 8 kB / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.445e-05/0.391, allocations: 0 / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.385e-05/0.391, allocations: 0 / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.431e-05/0.391, allocations: 4 kB / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.391, allocations: 0 / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003574/0.3914, allocations: 139.7 kB / 370.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.182e-06/0.3914, allocations: 0 / 370.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.3915, allocations: 25.7 kB / 370.6 MB, free: 9.891 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.3917, allocations: 95.81 kB / 370.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3917, allocations: 0 / 370.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3917, allocations: 4 kB / 370.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.3917, allocations: 4 kB / 370.7 MB, free: 9.789 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003903/0.3921, allocations: 365 kB / 371.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.3922, allocations: 12.02 kB / 371.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.3922, allocations: 0 / 371.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.3924, allocations: 159.1 kB / 371.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.3924, allocations: 0 / 371.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.3924, allocations: 0 / 371.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.3925, allocations: 33.64 kB / 371.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3925, allocations: 0 / 371.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.3926, allocations: 7.984 kB / 371.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.3926, allocations: 3.953 kB / 371.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.215e-05/0.3926, allocations: 4 kB / 371.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.3928, allocations: 149.7 kB / 371.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.3928, allocations: 14.58 kB / 371.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.3929, allocations: 4.094 kB / 371.5 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.004e-05/0.3929, allocations: 60.2 kB / 371.5 MB, free: 8.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.734e-06/0.393, allocations: 7.938 kB / 371.5 MB, free: 8.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000203/0.3932, allocations: 71.3 kB / 371.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.3932, allocations: 77.11 kB / 371.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.315e-05/0.3933, allocations: 89.86 kB / 371.8 MB, free: 8.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3933, allocations: 25.7 kB / 371.8 MB, free: 8.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/0.3934, allocations: 150.6 kB / 371.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.3934, allocations: 0 / 371.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.3934, allocations: 4 kB / 371.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3936, allocations: 318.9 kB / 372.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.083e-05/0.3936, allocations: 0 / 372.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.784e-06/0.3936, allocations: 0 / 372.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.1e-05/0.3937, allocations: 33.64 kB / 372.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3937, allocations: 0 / 372.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.029e-05/0.3938, allocations: 63.39 kB / 372.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.186e-05/0.3939, allocations: 35.42 kB / 372.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.3939, allocations: 3.938 kB / 372.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3939, allocations: 0 / 372.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.3939, allocations: 4.094 kB / 372.4 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3939, allocations: 0 / 372.4 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.202e-05/0.394, allocations: 4 kB / 372.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.394, allocations: 4 kB / 372.4 MB, free: 7.867 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001087/0.3941, allocations: 139.5 kB / 372.5 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-06/0.3941, allocations: 0 / 372.5 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.387e-05/0.3941, allocations: 7.125 kB / 372.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3941, allocations: 0 / 372.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3942, allocations: 0 / 372.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.3942, allocations: 81.11 kB / 372.6 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.3942, allocations: 0 / 372.6 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.411e-05/0.3943, allocations: 3.953 kB / 372.6 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.3943, allocations: 0 / 372.6 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001634/0.3945, allocations: 202 kB / 372.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001868/0.3947, allocations: 240.5 kB / 373.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.057e-05/0.3947, allocations: 4.062 kB / 373.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.789e-05/0.3947, allocations: 75.28 kB / 373.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of Backend: time 6.71e-07/0.3948, allocations: 0 / 373.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008403/0.3956, allocations: 229.7 kB / 373.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004686/0.3961, allocations: 0.6103 MB / 374 MB, free: 6.145 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result 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: result (no alias) initial: no arrCref index:(1) []