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.001864/0.001864, allocations: 111.9 kB / 20.43 MB, free: 1.473 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.002194/0.002194, allocations: 212 kB / 23.74 MB, free: 4.688 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.82/1.82, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001734/0.001734, allocations: 47.92 kB / 378.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3887, allocations: 53.36 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00352/0.3922, allocations: 1.631 MB / 433.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005955/0.3928, allocations: 171.4 kB / 433.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.393, allocations: 7.938 kB / 433.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.195e-05/0.3931, allocations: 7.922 kB / 433.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.3932, allocations: 11.88 kB / 433.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.3936, allocations: 47.88 kB / 433.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.3937, allocations: 59.84 kB / 433.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.3939, allocations: 28.22 kB / 433.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.203e-05/0.3939, allocations: 31.86 kB / 433.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.656e-05/0.394, allocations: 35.77 kB / 433.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.394, allocations: 8 kB / 433.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.712e-05/0.3941, allocations: 4 kB / 433.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.463e-05/0.3941, allocations: 19.92 kB / 433.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.385e-05/0.3942, allocations: 27.81 kB / 433.7 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.3945, allocations: 85.06 kB / 433.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.3945, allocations: 4 kB / 433.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3945, allocations: 0 / 433.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.3945, allocations: 0 / 433.8 MB, free: 4.754 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.0006721/0.3952, allocations: 309.7 kB / 434.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3952, allocations: 8.031 kB / 434.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.544e-05/0.3953, allocations: 16.84 kB / 434.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.3957, allocations: 138.3 kB / 434.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.3957, allocations: 8.375 kB / 434.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.3957, allocations: 12.34 kB / 434.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.3962, allocations: 188.7 kB / 434.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3962, allocations: 192 / 434.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.3962, allocations: 11.88 kB / 434.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3962, allocations: 4 kB / 434.5 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.3963, allocations: 35.92 kB / 434.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.397, allocations: 352.9 kB / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.3972, allocations: 111.8 kB / 435 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.3973, allocations: 58.69 kB / 435 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.3973, allocations: 3.984 kB / 435 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.3974, allocations: 38.56 kB / 435.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.3974, allocations: 0 / 435.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000404/0.3978, allocations: 125.5 kB / 435.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.3979, allocations: 119.4 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.398, allocations: 140.8 kB / 435.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.3981, allocations: 29.7 kB / 435.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.074e-05/0.3982, allocations: 84.38 kB / 435.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3982, allocations: 15.92 kB / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.3982, allocations: 37.66 kB / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3984, allocations: 314.8 kB / 435.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.908e-05/0.3985, allocations: 15.98 kB / 435.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.182e-05/0.3985, allocations: 81.44 kB / 436 MB, free: 2.273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.3987, allocations: 113.2 kB / 436.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3987, allocations: 4 kB / 436.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000194/0.3989, allocations: 105.5 kB / 436.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.399, allocations: 8 kB / 436.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.399, allocations: 4 kB / 436.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.399, allocations: 352 / 436.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.237e-05/0.399, allocations: 15.92 kB / 436.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.399, allocations: 11.92 kB / 436.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.338e-05/0.3991, allocations: 11.95 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.3991, allocations: 8 kB / 436.3 MB, free: 1.957 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.0001361/0.3993, allocations: 134.3 kB / 436.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3994, allocations: 81.58 kB / 436.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.122e-05/0.3995, allocations: 20.7 kB / 436.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3995, allocations: 4 kB / 436.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3995, allocations: 0 / 436.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3995, allocations: 4 kB / 436.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.3998, allocations: 160.6 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3998, allocations: 0 / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.3998, allocations: 4 kB / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3998, allocations: 0 / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3998, allocations: 8 kB / 436.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3998, allocations: 0 / 436.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3998, allocations: 0 / 436.7 MB, free: 1.488 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:8030:5-8030: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.0004551/0.4002, allocations: 343.7 kB / 437 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.228e-05/0.4003, allocations: 27.86 kB / 437 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.4003, allocations: 7.938 kB / 437.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-05/0.4004, allocations: 12.09 kB / 437.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.4005, allocations: 3.938 kB / 437.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.4005, allocations: 8 kB / 437.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.532e-05/0.4006, allocations: 110.1 kB / 437.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4006, allocations: 0 / 437.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.4008, allocations: 12 kB / 437.2 MB, free: 0.9609 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.0002223/0.4011, allocations: 107.2 kB / 437.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.4013, allocations: 67.84 kB / 437.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4013, allocations: 0 / 437.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.308e-05/0.4013, allocations: 8 kB / 437.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.4018, allocations: 55.88 kB / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005546/0.4024, allocations: 208.5 kB / 437.6 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.4028, allocations: 0.7078 MB / 438.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.003e-05/0.4028, allocations: 8.422 kB / 438.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.4029, allocations: 11.44 kB / 438.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4029, allocations: 0 / 438.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Templates: time 0.004591/0.4075, allocations: 0.8316 MB / 439.2 MB, free: 14.9 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: 5.419514836044982]