Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 108.7 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 190.9 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2604, allocations: 49.43 MB / 401.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002815/0.2632, allocations: 1.611 MB / 403 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004541/0.2637, allocations: 171.4 kB / 403.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.913e-05/0.2638, allocations: 4 kB / 403.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.001e-05/0.2639, allocations: 7.875 kB / 403.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.264, allocations: 11.86 kB / 403.2 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.2643, allocations: 55.89 kB / 403.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.2644, allocations: 59.83 kB / 403.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.2646, allocations: 28.22 kB / 403.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.434e-05/0.2646, allocations: 23.92 kB / 403.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.384e-05/0.2647, allocations: 31.84 kB / 403.4 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.2647, allocations: 11.94 kB / 403.4 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.2647, allocations: 4 kB / 403.4 MB, free: 7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.688e-05/0.2648, allocations: 23.92 kB / 403.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.2648, allocations: 31.8 kB / 403.5 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.265, allocations: 79.59 kB / 403.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.265, allocations: 0 / 403.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.265, allocations: 0 / 403.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.265, allocations: 0 / 403.5 MB, free: 6.867 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004826/0.2655, allocations: 388.4 kB / 403.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2655, allocations: 11.89 kB / 403.9 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/0.2656, allocations: 20.78 kB / 404 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.2658, allocations: 204 kB / 404.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.2659, allocations: 384 / 404.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.2659, allocations: 8.375 kB / 404.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.2662, allocations: 200.5 kB / 404.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.2663, allocations: 192 / 404.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.2663, allocations: 3.938 kB / 404.4 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2663, allocations: 4 kB / 404.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.2664, allocations: 39.92 kB / 404.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003894/0.2668, allocations: 366 kB / 404.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.267, allocations: 111.6 kB / 404.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.695e-05/0.2671, allocations: 66.69 kB / 404.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2671, allocations: 7.984 kB / 404.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.2671, allocations: 38.56 kB / 405 MB, free: 5.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.2672, allocations: 0 / 405 MB, free: 5.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003224/0.2675, allocations: 125.5 kB / 405.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.2675, allocations: 106.8 kB / 405.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.2677, allocations: 148.8 kB / 405.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.2677, allocations: 29.7 kB / 405.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.2678, allocations: 84.42 kB / 405.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.2678, allocations: 11.89 kB / 405.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.551e-05/0.2678, allocations: 37.7 kB / 405.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.2679, allocations: 310.8 kB / 405.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.472e-05/0.268, allocations: 15.98 kB / 405.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.524e-05/0.2681, allocations: 89.75 kB / 405.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.2682, allocations: 101.3 kB / 406 MB, free: 4.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.976e-05/0.2683, allocations: 7.938 kB / 406 MB, free: 4.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001809/0.2684, allocations: 117.3 kB / 406.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2685, allocations: 11.94 kB / 406.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.2685, allocations: 0 / 406.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2685, allocations: 7.984 kB / 406.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.844e-05/0.2685, allocations: 11.92 kB / 406.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2685, allocations: 4.344 kB / 406.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.565e-05/0.2686, allocations: 11.94 kB / 406.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.2686, allocations: 8 kB / 406.2 MB, free: 3.867 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,sample1.y,step.y,hold1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.2687, allocations: 125.8 kB / 406.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.2688, allocations: 11.81 kB / 406.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.4e-05/0.2689, allocations: 24.64 kB / 406.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2689, allocations: 3.938 kB / 406.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2689, allocations: 4 kB / 406.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.648e-05/0.269, allocations: 101 kB / 406.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.269, allocations: 3.984 kB / 406.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2691, allocations: 8 kB / 406.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.2692, allocations: 3.938 kB / 406.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003179/0.2695, allocations: 339.4 kB / 406.8 MB, free: 3.215 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor1.u2 xor.y xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.y := not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u := xor1.y hold1.y := $getPart(hold1.u) sample2.y := $getPart(hold1.y) xor.u2 := sample2.y xor.y := not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 := xor.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor1.u2 xor.y xor.u2 sample2.y hold1.y hold1.u xor1.y equations: xor1.y := not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u := xor1.y hold1.y := $getPart(hold1.u) sample2.y := $getPart(hold1.y) xor.u2 := sample2.y xor.y := not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 := xor.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module SymbolicJacobian.symbolicJacobianDAE failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004617/0.27, allocations: 474.7 kB / 407.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.892e-05/0.27, allocations: 35.98 kB / 407.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.551e-05/0.2701, allocations: 111.2 kB / 407.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of Backend: time 4.4e-07/0.2701, allocations: 4 kB / 407.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005922/0.2707, allocations: 110.5 kB / 407.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of SimCode: time 0.0006885/0.2714, allocations: 0.6313 MB / 408.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of Templates: time 0.003296/0.2748, allocations: 0.7962 MB / 409 MB, free: 1 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1)