Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 114.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 190.7 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 225.6 MB / 249.8 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 51.92 kB / 366.8 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09344, allocations: 52.14 MB / 418.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003036/0.09647, allocations: 1.612 MB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004426/0.09691, allocations: 175.4 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.329e-05/0.09699, allocations: 3.938 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.98e-05/0.09704, allocations: 11.92 kB / 420.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.09716, allocations: 11.88 kB / 420.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.09741, allocations: 51.88 kB / 420.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.09753, allocations: 59.84 kB / 420.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.09763, allocations: 24.22 kB / 420.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.934e-05/0.09767, allocations: 23.86 kB / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.997e-05/0.09772, allocations: 35.83 kB / 420.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.09774, allocations: 4 kB / 421 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.09776, allocations: 8 kB / 421 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.09781, allocations: 19.92 kB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.226e-05/0.09785, allocations: 43.69 kB / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.09799, allocations: 75.58 kB / 421.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.098, allocations: 0 / 421.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.098, allocations: 0 / 421.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.098, allocations: 0 / 421.1 MB, free: 9.984 MB / 350.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.0004981/0.0985, allocations: 395 kB / 421.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.09854, allocations: 11.89 kB / 421.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.09858, allocations: 16.84 kB / 421.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.09884, allocations: 206.7 kB / 421.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.09886, allocations: 4.375 kB / 421.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.09887, allocations: 8.375 kB / 421.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.09923, allocations: 178.4 kB / 421.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.09924, allocations: 4.188 kB / 421.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.09925, allocations: 3.938 kB / 421.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.09925, allocations: 4 kB / 421.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.09936, allocations: 43.91 kB / 422 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004029/0.09976, allocations: 369.8 kB / 422.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.09994, allocations: 115.7 kB / 422.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.1, allocations: 62.67 kB / 422.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.1001, allocations: 0 / 422.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.1001, allocations: 42.55 kB / 422.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.21e-07/0.1001, allocations: 0 / 422.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003521/0.1005, allocations: 129.5 kB / 422.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.1006, allocations: 110.8 kB / 422.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.1007, allocations: 151.7 kB / 422.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1007, allocations: 25.7 kB / 422.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.1008, allocations: 84.42 kB / 423 MB, free: 7.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.1008, allocations: 12.2 kB / 423 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.166e-05/0.1008, allocations: 37.7 kB / 423.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.101, allocations: 314.8 kB / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.27e-05/0.101, allocations: 15.94 kB / 423.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.29e-05/0.1011, allocations: 85.44 kB / 423.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.1013, allocations: 105.2 kB / 423.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1013, allocations: 4 kB / 423.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001947/0.1015, allocations: 121.4 kB / 423.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1015, allocations: 8 kB / 423.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1015, allocations: 0 / 423.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1015, allocations: 4 kB / 423.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.269e-05/0.1015, allocations: 7.938 kB / 423.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1015, allocations: 4 kB / 423.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.772e-05/0.1016, allocations: 15.89 kB / 423.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.1016, allocations: 8.344 kB / 423.7 MB, free: 6.98 MB / 350.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.0001139/0.1017, allocations: 138.1 kB / 423.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.1019, allocations: 85.58 kB / 424 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.1019, allocations: 20.66 kB / 424 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1019, allocations: 0 / 424 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1019, allocations: 0 / 424 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1019, allocations: 7.984 kB / 424 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.1022, allocations: 185.5 kB / 424.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1022, allocations: 0 / 424.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.635e-05/0.1022, allocations: 8 kB / 424.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1022, allocations: 3.984 kB / 424.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1022, allocations: 4 kB / 424.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1022, allocations: 0 / 424.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1022, allocations: 0 / 424.2 MB, free: 6.469 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8012:5-8012: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.0003976/0.1026, allocations: 354.7 kB / 424.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.843e-05/0.1027, allocations: 97.05 kB / 424.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1027, allocations: 3.984 kB / 424.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-05/0.1028, allocations: 4 kB / 424.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/0.1029, allocations: 4 kB / 424.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.1029, allocations: 4 kB / 424.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.849e-05/0.1029, allocations: 109.4 kB / 424.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1029, allocations: 4 kB / 424.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1032, allocations: 12 kB / 424.8 MB, free: 5.855 MB / 350.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.000128/0.1034, allocations: 115.1 kB / 424.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.1035, allocations: 64.69 kB / 424.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1035, allocations: 0 / 424.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.1036, allocations: 16.06 kB / 425 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.104, allocations: 52.2 kB / 425 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.1045, allocations: 233.3 kB / 425.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.1048, allocations: 0.7118 MB / 426 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.1049, allocations: 11.44 kB / 426 MB, free: 4.594 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1049, allocations: 4.125 kB / 426 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Templates: time 0.002531/0.1074, allocations: 0.9851 MB / 427 MB, free: 3.605 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.372509112115949]