Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001578/0.001578, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00188/0.00188, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 230.5 MB / 258.1 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 63.91 kB / 379 MB, free: 2.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2209, allocations: 53.41 MB / 432.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002911/0.2238, allocations: 1.621 MB / 434 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004161/0.2242, allocations: 167.4 kB / 434.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.216e-05/0.2243, allocations: 7.938 kB / 434.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.703e-05/0.2243, allocations: 7.922 kB / 434.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.2244, allocations: 7.875 kB / 434.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.2247, allocations: 59 kB / 434.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.2248, allocations: 55.91 kB / 434.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2249, allocations: 28 kB / 434.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.994e-05/0.2249, allocations: 27.86 kB / 434.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.781e-05/0.225, allocations: 31.78 kB / 434.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.225, allocations: 8 kB / 434.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.031e-05/0.225, allocations: 4 kB / 434.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.541e-05/0.2251, allocations: 15.92 kB / 434.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.2251, allocations: 27.81 kB / 434.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.2253, allocations: 83.3 kB / 434.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2253, allocations: 0 / 434.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2253, allocations: 4 kB / 434.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.2253, allocations: 0 / 434.5 MB, free: 4.418 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.0004553/0.2257, allocations: 305.1 kB / 434.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.2258, allocations: 19.97 kB / 434.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.2258, allocations: 8.891 kB / 434.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.226, allocations: 146.3 kB / 435 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2261, allocations: 8.375 kB / 435 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.2261, allocations: 4.375 kB / 435 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.2264, allocations: 190.3 kB / 435.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2264, allocations: 192 / 435.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2265, allocations: 7.938 kB / 435.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2265, allocations: 0 / 435.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.2266, allocations: 43.92 kB / 435.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003641/0.2269, allocations: 309.5 kB / 435.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.2271, allocations: 115.9 kB / 435.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.726e-05/0.2272, allocations: 58.5 kB / 435.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.2272, allocations: 4 kB / 435.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.2273, allocations: 34.56 kB / 435.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.203e-06/0.2273, allocations: 3.938 kB / 435.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003309/0.2276, allocations: 133.5 kB / 435.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.2277, allocations: 110.8 kB / 436 MB, free: 2.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.2278, allocations: 144.5 kB / 436.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.2278, allocations: 25.7 kB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.442e-05/0.2279, allocations: 88.62 kB / 436.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.2279, allocations: 12 kB / 436.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.806e-05/0.228, allocations: 37.66 kB / 436.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2281, allocations: 318.8 kB / 436.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.29e-05/0.2281, allocations: 12 kB / 436.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.83e-05/0.2282, allocations: 81.42 kB / 436.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.2284, allocations: 109.3 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2284, allocations: 0 / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001993/0.2286, allocations: 121.5 kB / 436.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2286, allocations: 8 kB / 436.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2286, allocations: 4 kB / 436.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2286, allocations: 4 kB / 436.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.09e-05/0.2286, allocations: 7.938 kB / 437 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2286, allocations: 0 / 437 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.2287, allocations: 12.36 kB / 437 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.2287, allocations: 8 kB / 437 MB, free: 1.676 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.0001057/0.2288, allocations: 137.8 kB / 437.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.229, allocations: 85.52 kB / 437.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.141e-05/0.229, allocations: 20.7 kB / 437.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.229, allocations: 0 / 437.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.229, allocations: 4 kB / 437.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.229, allocations: 3.938 kB / 437.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.2292, allocations: 121.3 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2292, allocations: 3.938 kB / 437.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.686e-05/0.2293, allocations: 7.984 kB / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2293, allocations: 0 / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.2293, allocations: 8 kB / 437.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2293, allocations: 4 kB / 437.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2293, allocations: 0 / 437.4 MB, free: 1.238 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.0003724/0.2296, allocations: 333.1 kB / 437.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.2297, allocations: 27.81 kB / 437.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.2297, allocations: 12 kB / 437.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.2298, allocations: 3.984 kB / 437.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.2298, allocations: 4 kB / 437.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.2298, allocations: 4 kB / 437.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.395e-05/0.2299, allocations: 110 kB / 437.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2299, allocations: 0 / 437.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.2302, allocations: 19.98 kB / 437.9 MB, free: 0.7188 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.2303, allocations: 103.2 kB / 438 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.2305, allocations: 72.5 kB / 438 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2305, allocations: 0 / 438 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.065e-05/0.2305, allocations: 8 kB / 438 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.231, allocations: 58.94 kB / 438.1 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.2314, allocations: 233.4 kB / 438.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.2315, allocations: 103.1 kB / 438.4 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.714e-05/0.2315, allocations: 11.44 kB / 438.4 MB, free: 80 kB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2315, allocations: 4.312 kB / 438.4 MB, free: 76 kB / 334.1 MB Notification: Performance of Templates: time 0.002547/0.2341, allocations: 1.003 MB / 439.4 MB, free: 15.07 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.643403947819024]