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.00173/0.00173, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.002262/0.002262, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.505/1.505, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.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 1.552e-06/1.552e-06, allocations: 0 / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.345e-05, allocations: 2.281 kB / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002798/0.002822, allocations: 1.643 MB / 326.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004623/0.003284, allocations: 156.9 kB / 326.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.269e-05/0.003377, allocations: 6.531 kB / 326.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.093e-05/0.003438, allocations: 9.75 kB / 326.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.003592, allocations: 11.77 kB / 326.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.003866, allocations: 50.66 kB / 326.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.004015, allocations: 64.94 kB / 326.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.00414, allocations: 25.19 kB / 327 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.483e-05/0.004215, allocations: 43.88 kB / 327 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.815e-05/0.004273, allocations: 20.3 kB / 327 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.004298, allocations: 5.844 kB / 327 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.423e-05/0.004313, allocations: 5.688 kB / 327 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.737e-05/0.00437, allocations: 17.5 kB / 327.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.093e-05/0.004411, allocations: 24.91 kB / 327.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.004573, allocations: 74.28 kB / 327.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.004576, allocations: 0 / 327.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004576, allocations: 1.219 kB / 327.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.004581, allocations: 0 / 327.2 MB, free: 15.11 MB / 302.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.000511/0.005092, allocations: 306.9 kB / 327.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.005129, allocations: 18.61 kB / 327.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.903e-05/0.005178, allocations: 16.31 kB / 327.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.005453, allocations: 139.9 kB / 327.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.005479, allocations: 7.656 kB / 327.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.005494, allocations: 4.781 kB / 327.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.005921, allocations: 194 kB / 327.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.005933, allocations: 4.188 kB / 327.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.005949, allocations: 5.438 kB / 327.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.005955, allocations: 2.75 kB / 327.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.006072, allocations: 41.69 kB / 327.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004172/0.006489, allocations: 307.7 kB / 328.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.006683, allocations: 102.7 kB / 328.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.006793, allocations: 59.33 kB / 328.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.006816, allocations: 3.625 kB / 328.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.006868, allocations: 45.94 kB / 328.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.00687, allocations: 0 / 328.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003767/0.007246, allocations: 132.4 kB / 328.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.007361, allocations: 111.9 kB / 328.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.007512, allocations: 139.7 kB / 328.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.007532, allocations: 25.7 kB / 328.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.007597, allocations: 91.98 kB / 328.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.007618, allocations: 6.141 kB / 328.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.007664, allocations: 25 kB / 328.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.007831, allocations: 315 kB / 329.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.429e-05/0.007865, allocations: 12.41 kB / 329.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.539e-05/0.0079, allocations: 16.34 kB / 329.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.73e-05/0.007968, allocations: 27.06 kB / 329.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.007972, allocations: 2.188 kB / 329.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001036/0.008075, allocations: 49.52 kB / 329.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.008094, allocations: 9.781 kB / 329.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.008099, allocations: 9.234 kB / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.008114, allocations: 2.562 kB / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-05/0.008125, allocations: 0 / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.269e-06/0.008131, allocations: 0 / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.189e-05/0.008163, allocations: 2.266 kB / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.00817, allocations: 1.219 kB / 329.3 MB, free: 13.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001156/0.008286, allocations: 117.9 kB / 329.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.008449, allocations: 89.55 kB / 329.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.008497, allocations: 22.55 kB / 329.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.0085, allocations: 2.031 kB / 329.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.008504, allocations: 5.438 kB / 329.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.008509, allocations: 0.9844 kB / 329.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.008737, allocations: 123.6 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.008739, allocations: 1.062 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.72e-05/0.008756, allocations: 7.641 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.008759, allocations: 1.125 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.008771, allocations: 6.281 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.008774, allocations: 2.016 kB / 329.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.008778, allocations: 5.062 kB / 329.7 MB, free: 12.79 MB / 302.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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:347:7-347: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:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7979:5-7979: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.0004336/0.009212, allocations: 338 kB / 330.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.155e-05/0.009264, allocations: 23.05 kB / 330.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.009287, allocations: 10.72 kB / 330.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.00939, allocations: 6.844 kB / 330.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.009421, allocations: 3.75 kB / 330.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.009428, allocations: 2.219 kB / 330.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.932e-05/0.009517, allocations: 111.4 kB / 330.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.009517, allocations: 0.7812 kB / 330.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002742/0.009792, allocations: 14.66 kB / 330.2 MB, free: 12.43 MB / 302.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.0001187/0.00991, allocations: 101.2 kB / 330.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001626/0.01007, allocations: 44.42 kB / 330.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01007, allocations: 0 / 330.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.096e-05/0.01011, allocations: 6.688 kB / 330.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.01057, allocations: 58.81 kB / 330.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/0.01104, allocations: 214.2 kB / 330.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.01116, allocations: 92.81 kB / 330.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.158e-05/0.01118, allocations: 5.672 kB / 330.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.69e-05/0.01122, allocations: 12.53 kB / 330.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01122, allocations: 0 / 330.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Templates: time 0.003985/0.0152, allocations: 0.7484 MB / 331.5 MB, free: 11.86 MB / 302.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/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_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: 4.433386109769344]