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.001585/0.001585, allocations: 119.4 kB / 18.41 MB, free: 4.648 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.001607/0.001607, allocations: 196.3 kB / 21.35 MB, free: 1.711 MB / 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.487/1.487, allocations: 222.9 MB / 247 MB, free: 4.215 MB / 190.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.001587/0.001587, allocations: 47.91 kB / 358.7 MB, free: 8.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.1012, allocations: 49.44 MB / 408.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003114/0.1044, allocations: 1.601 MB / 409.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004564/0.1048, allocations: 175.4 kB / 409.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.1049, allocations: 0 / 409.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.423e-05/0.105, allocations: 7.875 kB / 409.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.1051, allocations: 11.88 kB / 409.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.1054, allocations: 51.88 kB / 409.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.1055, allocations: 59.84 kB / 410 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1057, allocations: 40.14 kB / 410 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.405e-05/0.1057, allocations: 23.92 kB / 410.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.752e-05/0.1058, allocations: 31.78 kB / 410.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.1058, allocations: 8 kB / 410.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.1058, allocations: 4 kB / 410.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.364e-05/0.1059, allocations: 19.92 kB / 410.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.1059, allocations: 39.73 kB / 410.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.1061, allocations: 71.59 kB / 410.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1061, allocations: 0 / 410.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1061, allocations: 4 kB / 410.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1061, allocations: 0 / 410.2 MB, free: 4.738 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.0005133/0.1066, allocations: 395 kB / 410.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.1067, allocations: 11.89 kB / 410.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.106e-05/0.1067, allocations: 12.84 kB / 410.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.107, allocations: 200.2 kB / 410.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.107, allocations: 4.375 kB / 410.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1071, allocations: 16.31 kB / 410.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/0.1075, allocations: 188.7 kB / 411 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1075, allocations: 192 / 411 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.1075, allocations: 3.938 kB / 411.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.1075, allocations: 0 / 411.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.1076, allocations: 47.92 kB / 411.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004557/0.1081, allocations: 365.8 kB / 411.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.1083, allocations: 119.6 kB / 411.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1084, allocations: 78.73 kB / 411.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1085, allocations: 0 / 411.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1085, allocations: 42.55 kB / 411.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.1085, allocations: 0 / 411.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003493/0.1089, allocations: 129.5 kB / 411.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.109, allocations: 110.8 kB / 411.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.1091, allocations: 141.8 kB / 412.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.1091, allocations: 29.7 kB / 412.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.1092, allocations: 84.42 kB / 412.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.1092, allocations: 11.94 kB / 412.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.063e-05/0.1093, allocations: 29.72 kB / 412.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1094, allocations: 323.1 kB / 412.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.513e-05/0.1095, allocations: 19.92 kB / 412.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.277e-05/0.1096, allocations: 77.44 kB / 412.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.1098, allocations: 117.2 kB / 412.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1098, allocations: 0 / 412.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002048/0.11, allocations: 113.6 kB / 412.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.11, allocations: 12.06 kB / 412.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.11, allocations: 4 kB / 412.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.11, allocations: 0 / 412.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.329e-05/0.1101, allocations: 11.94 kB / 412.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.1101, allocations: 3.984 kB / 412.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.009e-05/0.1102, allocations: 11.95 kB / 412.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.1102, allocations: 8 kB / 412.9 MB, free: 1.719 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.0001087/0.1103, allocations: 129.7 kB / 413 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.1105, allocations: 86.02 kB / 413.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.1105, allocations: 16.7 kB / 413.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1105, allocations: 0 / 413.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1105, allocations: 4 kB / 413.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1105, allocations: 96 / 413.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.1108, allocations: 193.4 kB / 413.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1108, allocations: 0 / 413.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.835e-05/0.1108, allocations: 7.938 kB / 413.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1109, allocations: 0 / 413.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.1109, allocations: 8 kB / 413.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1109, allocations: 4 kB / 413.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1109, allocations: 0 / 413.3 MB, free: 1.211 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011: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.0003973/0.1113, allocations: 344.3 kB / 413.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.669e-05/0.1114, allocations: 105 kB / 413.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.1114, allocations: 4 kB / 413.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.732e-05/0.1115, allocations: 4 kB / 413.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/0.1115, allocations: 0 / 413.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.1116, allocations: 12 kB / 413.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.968e-05/0.1116, allocations: 109.2 kB / 413.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1116, allocations: 0 / 413.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000302/0.112, allocations: 12 kB / 413.9 MB, free: 0.5977 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.0001388/0.1121, allocations: 115.2 kB / 414 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002143/0.1123, allocations: 71.78 kB / 414.1 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1123, allocations: 0 / 414.1 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.347e-05/0.1124, allocations: 4.75 kB / 414.1 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.1128, allocations: 59.88 kB / 414.2 MB, free: 356 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.1133, allocations: 237.3 kB / 414.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.1137, allocations: 0.7002 MB / 415.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.421e-05/0.1138, allocations: 11.44 kB / 415.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1138, allocations: 0 / 415.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Templates: time 0.002706/0.1165, allocations: 1.003 MB / 416.1 MB, free: 14.34 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.822840605047531]