Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002188/0.002188, allocations: 205.1 kB / 24.48 MB, free: 3.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 51.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2321, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003094/0.2352, allocations: 1.619 MB / 433.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004419/0.2356, allocations: 163.4 kB / 434.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.2357, allocations: 3.938 kB / 434.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.781e-05/0.2358, allocations: 3.938 kB / 434.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.2359, allocations: 23.86 kB / 434.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.2361, allocations: 43.89 kB / 434.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.2363, allocations: 59.84 kB / 434.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.2364, allocations: 32 kB / 434.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.71e-05/0.2364, allocations: 35.8 kB / 434.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.081e-05/0.2365, allocations: 31.78 kB / 434.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.2365, allocations: 8 kB / 434.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.2365, allocations: 4 kB / 434.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.409e-05/0.2366, allocations: 15.92 kB / 434.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.286e-05/0.2366, allocations: 35.78 kB / 434.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.2368, allocations: 75.38 kB / 434.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.2368, allocations: 4 kB / 434.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2368, allocations: 0 / 434.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2368, allocations: 0 / 434.5 MB, free: 4.547 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.0004852/0.2373, allocations: 313 kB / 434.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.2373, allocations: 8.031 kB / 434.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.2373, allocations: 12.89 kB / 434.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.2376, allocations: 142.3 kB / 434.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.2376, allocations: 8.375 kB / 435 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.2376, allocations: 8.375 kB / 435 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.238, allocations: 183.6 kB / 435.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.238, allocations: 4.188 kB / 435.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.238, allocations: 7.938 kB / 435.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.238, allocations: 3.984 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.2382, allocations: 39.91 kB / 435.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003717/0.2385, allocations: 309.5 kB / 435.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.2387, allocations: 115.8 kB / 435.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.2388, allocations: 62.61 kB / 435.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.2389, allocations: 4 kB / 435.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.2389, allocations: 34.56 kB / 435.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.2389, allocations: 0 / 435.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000357/0.2393, allocations: 133.7 kB / 435.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.2393, allocations: 114.7 kB / 435.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.2395, allocations: 134.1 kB / 436.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.2395, allocations: 33.7 kB / 436.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.2396, allocations: 92.36 kB / 436.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.2396, allocations: 8 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.2396, allocations: 37.59 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2398, allocations: 318.8 kB / 436.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.919e-05/0.2398, allocations: 15.98 kB / 436.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.938e-05/0.2399, allocations: 77.44 kB / 436.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.2401, allocations: 109.2 kB / 436.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2401, allocations: 4 kB / 436.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002037/0.2403, allocations: 117.4 kB / 436.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.2403, allocations: 8 kB / 436.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2403, allocations: 0 / 436.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2403, allocations: 4 kB / 436.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.538e-05/0.2403, allocations: 11.92 kB / 436.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.2403, allocations: 4 kB / 436.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.444e-05/0.2404, allocations: 8 kB / 436.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.2404, allocations: 8.344 kB / 436.9 MB, free: 1.809 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.0001102/0.2405, allocations: 141.6 kB / 437.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.2407, allocations: 81.58 kB / 437.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.2407, allocations: 16.72 kB / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2407, allocations: 0 / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2407, allocations: 0 / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2407, allocations: 4 kB / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.2409, allocations: 129.2 kB / 437.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2409, allocations: 3.938 kB / 437.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.602e-05/0.2409, allocations: 4 kB / 437.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2409, allocations: 4 kB / 437.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.241, allocations: 4 kB / 437.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.241, allocations: 4 kB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.241, allocations: 0 / 437.3 MB, free: 1.375 MB / 334.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.) 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/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/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:8018:5-8018: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.0003895/0.2413, allocations: 343.6 kB / 437.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.2414, allocations: 27.81 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.2414, allocations: 4 kB / 437.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.736e-05/0.2415, allocations: 8 kB / 437.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.2415, allocations: 0 / 437.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.2416, allocations: 8 kB / 437.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.718e-05/0.2416, allocations: 111.2 kB / 437.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2416, allocations: 0 / 437.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.2419, allocations: 12 kB / 437.8 MB, free: 0.8555 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.000105/0.242, allocations: 107.2 kB / 437.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.2422, allocations: 71.78 kB / 438 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2422, allocations: 0 / 438 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.22e-05/0.2423, allocations: 8 kB / 438 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004405/0.2427, allocations: 62.38 kB / 438 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004198/0.2431, allocations: 229.4 kB / 438.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.2432, allocations: 99.89 kB / 438.4 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.2433, allocations: 19.42 kB / 438.4 MB, free: 212 kB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2433, allocations: 0 / 438.4 MB, free: 212 kB / 334.1 MB Notification: Performance of Templates: time 0.002588/0.2459, allocations: 1.002 MB / 439.4 MB, free: 15.2 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.985192780004581]