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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002515/0.002515, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.638/1.638, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 51.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3111, allocations: 52.15 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003118/0.3142, allocations: 1.62 MB / 422.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004953/0.3147, allocations: 175.4 kB / 422.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/0.3148, allocations: 3.938 kB / 422.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.443e-05/0.3149, allocations: 7.922 kB / 422.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.315, allocations: 11.88 kB / 422.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.3153, allocations: 47.88 kB / 422.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.3154, allocations: 59.84 kB / 422.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.3155, allocations: 32.2 kB / 422.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.885e-05/0.3156, allocations: 27.86 kB / 422.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.536e-05/0.3156, allocations: 35.78 kB / 422.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.3157, allocations: 4 kB / 422.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.3157, allocations: 11.94 kB / 422.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.787e-05/0.3157, allocations: 19.92 kB / 422.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.431e-05/0.3158, allocations: 27.81 kB / 422.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.3159, allocations: 83.09 kB / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3159, allocations: 0 / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3159, allocations: 0 / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3159, allocations: 0 / 423 MB, free: 12.95 MB / 334.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.000513/0.3164, allocations: 392.8 kB / 423.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3165, allocations: 15.89 kB / 423.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.3165, allocations: 12.84 kB / 423.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.3168, allocations: 196.2 kB / 423.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.3169, allocations: 8.375 kB / 423.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.62e-05/0.3169, allocations: 8.359 kB / 423.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.3173, allocations: 182.4 kB / 423.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3173, allocations: 192 / 423.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.3173, allocations: 11.94 kB / 423.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-06/0.3173, allocations: 0 / 423.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.3174, allocations: 39.91 kB / 423.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.3179, allocations: 377.8 kB / 424.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.3181, allocations: 111.8 kB / 424.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3182, allocations: 66.61 kB / 424.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3182, allocations: 0 / 424.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.3182, allocations: 38.56 kB / 424.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.3182, allocations: 0 / 424.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003606/0.3186, allocations: 133.7 kB / 424.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.383e-05/0.3187, allocations: 119 kB / 424.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3188, allocations: 144.7 kB / 424.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3189, allocations: 25.7 kB / 424.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.3189, allocations: 88.42 kB / 425 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.319, allocations: 7.953 kB / 425 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.319, allocations: 33.7 kB / 425 MB, free: 10.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3192, allocations: 318.8 kB / 425.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.479e-05/0.3192, allocations: 16 kB / 425.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-05/0.3193, allocations: 77.44 kB / 425.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.3194, allocations: 117.2 kB / 425.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3194, allocations: 0 / 425.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001963/0.3196, allocations: 113.4 kB / 425.6 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.3196, allocations: 8 kB / 425.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3197, allocations: 4.344 kB / 425.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3197, allocations: 8 kB / 425.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.313e-05/0.3197, allocations: 7.938 kB / 425.6 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3197, allocations: 0 / 425.6 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.3198, allocations: 11.95 kB / 425.7 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.3198, allocations: 8 kB / 425.7 MB, free: 9.949 MB / 334.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 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,sample1.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.000131/0.3199, allocations: 144.7 kB / 425.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.3201, allocations: 81.58 kB / 425.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.3201, allocations: 24.66 kB / 425.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3201, allocations: 0 / 425.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3201, allocations: 4 kB / 425.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3201, allocations: 3.984 kB / 425.9 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.3204, allocations: 185.6 kB / 426.1 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.3204, allocations: 4 kB / 426.1 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.37e-05/0.3204, allocations: 0 / 426.1 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3204, allocations: 3.984 kB / 426.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.3204, allocations: 8 kB / 426.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3204, allocations: 0 / 426.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3204, allocations: 0 / 426.1 MB, free: 9.434 MB / 334.1 MB [/var/lib/jenkins/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.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.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 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.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 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8012:5-8012:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004007/0.3208, allocations: 348.5 kB / 426.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.3209, allocations: 105 kB / 426.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.3209, allocations: 7.984 kB / 426.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.321, allocations: 8 kB / 426.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/0.321, allocations: 0 / 426.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3211, allocations: 8 kB / 426.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.095e-05/0.3211, allocations: 103.3 kB / 426.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3211, allocations: 3.938 kB / 426.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.3214, allocations: 12 kB / 426.7 MB, free: 8.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001324/0.3216, allocations: 115.7 kB / 426.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.3218, allocations: 63.84 kB / 426.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3218, allocations: 4 kB / 426.9 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.124e-05/0.3218, allocations: 4 kB / 426.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.3222, allocations: 47.89 kB / 426.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00045/0.3227, allocations: 216.4 kB / 427.1 MB, free: 8.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.323, allocations: 0.7157 MB / 427.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.431e-05/0.323, allocations: 448 / 427.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.3231, allocations: 15.44 kB / 427.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.3231, allocations: 0 / 427.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of Templates: time 0.003867/0.3269, allocations: 0.8108 MB / 428.7 MB, free: 6.77 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.087380041368306]