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.001566/0.001566, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001533/0.001533, allocations: 209.5 kB / 23.73 MB, free: 4.523 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.542/1.542, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001571/0.001571, allocations: 43.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3254, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003388/0.3288, allocations: 1.629 MB / 433.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005129/0.3293, allocations: 171.4 kB / 433.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.811e-05/0.3294, allocations: 0 / 433.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.548e-05/0.3294, allocations: 11.86 kB / 433.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.3296, allocations: 15.88 kB / 433.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.3299, allocations: 47.88 kB / 433.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.33, allocations: 63.83 kB / 433.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.3302, allocations: 32.02 kB / 433.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.901e-05/0.3302, allocations: 31.86 kB / 433.6 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.081e-05/0.3303, allocations: 27.84 kB / 433.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.3303, allocations: 8 kB / 433.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.3303, allocations: 4 kB / 433.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.645e-05/0.3304, allocations: 15.92 kB / 433.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.519e-05/0.3304, allocations: 31.8 kB / 433.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.3306, allocations: 78.31 kB / 433.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3306, allocations: 4 kB / 433.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3306, allocations: 0 / 433.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.3306, allocations: 0 / 433.7 MB, free: 4.551 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.0006017/0.3312, allocations: 309.7 kB / 434 MB, free: 4.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3312, allocations: 12.02 kB / 434 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.3313, allocations: 16.83 kB / 434.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.3315, allocations: 138.3 kB / 434.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.3316, allocations: 8.375 kB / 434.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.3316, allocations: 4.375 kB / 434.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.332, allocations: 190.3 kB / 434.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.332, allocations: 192 / 434.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.332, allocations: 7.938 kB / 434.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.332, allocations: 0 / 434.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.3321, allocations: 39.92 kB / 434.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.3326, allocations: 305.5 kB / 434.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.3328, allocations: 107.6 kB / 434.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3329, allocations: 62.75 kB / 434.9 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.3329, allocations: 4 kB / 434.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.3329, allocations: 34.56 kB / 434.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.3329, allocations: 3.938 kB / 434.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003544/0.3333, allocations: 137.5 kB / 435.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.3334, allocations: 106.8 kB / 435.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.3335, allocations: 144.8 kB / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.3336, allocations: 25.7 kB / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.135e-05/0.3336, allocations: 88.38 kB / 435.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.3337, allocations: 11.98 kB / 435.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.3337, allocations: 37.91 kB / 435.5 MB, free: 2.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.3339, allocations: 326.8 kB / 435.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.672e-05/0.3339, allocations: 12 kB / 435.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.334, allocations: 85.36 kB / 435.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.3342, allocations: 101.3 kB / 436 MB, free: 1.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3342, allocations: 4 kB / 436 MB, free: 1.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002112/0.3344, allocations: 121.6 kB / 436.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3344, allocations: 12 kB / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3344, allocations: 4 kB / 436.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.3345, allocations: 0 / 436.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.462e-05/0.3345, allocations: 7.938 kB / 436.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.3345, allocations: 4 kB / 436.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.645e-05/0.3345, allocations: 11.98 kB / 436.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.3346, allocations: 8 kB / 436.2 MB, free: 1.812 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.0001528/0.3347, allocations: 137.3 kB / 436.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.3349, allocations: 81.62 kB / 436.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.97e-05/0.3349, allocations: 24.7 kB / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3349, allocations: 0 / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.3349, allocations: 4.469 kB / 436.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3349, allocations: 0 / 436.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.3351, allocations: 125.3 kB / 436.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3351, allocations: 7.875 kB / 436.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.818e-05/0.3352, allocations: 7.984 kB / 436.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3352, allocations: 3.938 kB / 436.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3352, allocations: 4 kB / 436.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3352, allocations: 4 kB / 436.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3352, allocations: 0 / 436.6 MB, free: 1.375 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: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.0004359/0.3356, allocations: 337.1 kB / 436.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.3357, allocations: 27.81 kB / 436.9 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.3357, allocations: 4 kB / 436.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.724e-05/0.3358, allocations: 7.984 kB / 436.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.3358, allocations: 0 / 436.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-06/0.3359, allocations: 4 kB / 436.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.977e-05/0.3359, allocations: 107.2 kB / 437 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3359, allocations: 4 kB / 437 MB, free: 0.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.3362, allocations: 15.98 kB / 437.1 MB, free: 0.8594 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.0001372/0.3364, allocations: 103.2 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.3366, allocations: 67.78 kB / 437.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3366, allocations: 0.6875 kB / 437.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.089e-05/0.3366, allocations: 12 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.337, allocations: 60.59 kB / 437.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004414/0.3375, allocations: 203.7 kB / 437.5 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.3376, allocations: 99.12 kB / 437.6 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.202e-05/0.3376, allocations: 448 / 437.6 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.3377, allocations: 15.44 kB / 437.6 MB, free: 264 kB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3377, allocations: 0 / 437.6 MB, free: 264 kB / 334.1 MB Notification: Performance of Templates: time 0.003963/0.3416, allocations: 0.8894 MB / 438.5 MB, free: 15.38 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/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: 4.656398260034621]